mousewheel events

0 views
Skip to first unread message

Tahoma

unread,
Jul 2, 2007, 3:17:22 AM7/2/07
to iPhoneWebDev
Check it out!

http://homepage.mac.com/tahoma.toelkes/mousewheel.html

Deltas coming soon to an example near you. ;-)


-- Tahoma

Tahoma

unread,
Jul 2, 2007, 3:34:51 AM7/2/07
to iPhoneWebDev
Okay, I've now added deltas to the example.


-- Tahoma

Joe Hewitt

unread,
Jul 2, 2007, 3:53:20 AM7/2/07
to iPhoneWebDev
Oh such a tease. I played with it for a while, and I can't seem to
get the events to fire with any reliability. It's completely random.
Very frustrating.

Tahoma

unread,
Jul 2, 2007, 5:40:55 AM7/2/07
to iPhoneWebDev
Eh? It's very deterministic for me. Slide two fingers straight up
and down, just like using the trackpad on a MacBook.


-- Tahoma

Joe Hewitt

unread,
Jul 2, 2007, 5:52:37 AM7/2/07
to iPhoneWebDev
It's nowhere close to deterministic for me. About 2/3 of the time
that I make that motion it tries to zoom the page. Once the
mousewheels kick in, they continue as long as I keep my fingers down,
but once I release and pinch again, it's back to zooming.

Tahoma

unread,
Jul 2, 2007, 9:18:08 AM7/2/07
to iPhoneWebDev
Don't pinch. Use your index and middle finger to pull a straight line
up or push a straight line down.


-- Tahoma

Ed Holloway

unread,
Jul 2, 2007, 12:07:09 PM7/2/07
to iPhoneWebDev
Very cool, thanks! Seems consistent for me. Also noticed fingers do
not need to be pressed next to each other - I can have one finger on
the left screen edge, one on the right and it still works fine - glad
to see users will not need to be super precise here.

Tahoma

unread,
Jul 2, 2007, 12:44:02 PM7/2/07
to iPhoneWebDev
You're welcome, Ed.

I really like the two-finger scrolling gesture from my MacBook, so I
was very pleased to find that we would be able to use it within our
applets.

Anyway, I just updated the example with a cute box on the side of the
log that shows a virtual position so that you could get a better feel
of moving a wheel back and forth.

It's not terribly pretty, but it's pretty good for someone with three
days of Javascript experience who otherwise normally mostly codes
firmware in C and assembly. (Yes, that was me patting myself on the
back...publicly.) ;-)


-- Tahoma

Joe Hewitt

unread,
Jul 2, 2007, 3:17:57 PM7/2/07
to iPhoneWebDev
Oh, ok! Two fingers straight up and down does work! Funny, I've
always used a kind of
pinching motion with my thumb and index finger to scroll on my Macbook
Pro's trackpad.

Great work, Tahoma!

Ed Holloway

unread,
Jul 2, 2007, 3:56:03 PM7/2/07
to iPhoneWebDev
Like the update too. If you are writing firmware in C & asm, JS
should be a cakewalk for you! :-)
Reply all
Reply to author
Forward
0 new messages