views:

79

answers:

2

I want to prevent the scrolling on a safari web page for iphone by binding the preventDefault method on the document element of the DOM, and it works on every elements but the video tag.

document.addEventListener("touchmove", function(e){e.preventdefault();}, false);

I've tried attaching the event to the video tags, but it seems as if nothing is attached or the events are simply not triggered.

+1  A: 

i don't know if this is possible, but maybe you can use a that is positiones above the and bind your function to that div... but this might also block clicks and other interactions with that video :-/

oezi
It would seem to block the interactions with the video.
Jeff Beck
A: 

Same Problem Here.

Klaus