KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to Simulate a scroll event using Javascript for Mobile Safari. I am using the following code var evt = document.createEvent("MouseEvents"); evt.initMouseEvent("scroll", true, true, window,0, 0, 0, 0, 0, false, false, false, false, 0, null); The above code is part of a jQuery plugin jQuery.UI.Ipad which basically maps touch events like touchstart , touchmove , touchend to mouse events like mouseover , mousedown , etc However for some reasons the code for simulating a scroll event is not working... Please help me. So essentially my question is how do I simulate the scroll event.
Tags (comma-separated)
Save Edits
Cancel