I'm trying to block the "touchmove" event on iOS safari but only if the
gesture movement is inside a specific threshold.. something like:
(verticalMovement < 30)? blockScroll() : releaseScroll();

the problem is that preventDefault() cancels the event and I can't
re-activate it after that:
http://www.w3.org/TR/2006/WD-DOM-Level-3-Events-20060413/events.html#Events-Event-preventDefault
-  so even if the movement becomes bigger than the threshold after some time
the browser still won't scroll

I confess that I didn't tried to clone the "touchmove" event and trigger it
(using `initTouchEvent`) yet since I'm skeptical that it will solve the
problem and I'm too busy right now solving other problems. I also considered
something like dispatching "touchend" and "touchstart" to trick the browser
but I also didn't tried..

any insights?

thanks.

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to