Is there a way to make to work the mootools class "Drag" on Safari mobile? Please don't link me to other frameworks.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
Here was my solution to making Mootools Drag support touch events. This method didn't require me to edit the mootools more file since i used Class.refactor (This is only tested with Mootools v.1.3.1) -- it also does not break the usual click events
Could you try https://github.com/kamicane/mootools-touch ?
I've fixed it myself. It is as easy as maping the mouse events to touch events.
So the solution is to search & replace: