Open erikhagreis opened 9 years ago
Yeah it is true because I guess nanoScroller was initially created with desktop browsers in mind.
If preventScrolling
can be implemented so that it works consistently in mobile browsers, then there should be reason to support it as well.
I'm currently working on an implementation and learning a lot about how touchdevices handle scrolling. Once I understand enough of it I'll come back to this.
@erikhagreis sounds good! You should share your learnings when you are done :) :+1:
It seems there is no support for preventPageScrolling on touch devices. I have looked into the code, and cannot find logic in the
preventScrolling
function that handles events of typetouchmove
. There is only logic for `DOMMouseScroll' and 'wheel' events.Am I missing anything? If not it would be feasible for me to create a pull request where also touch events are handled in this feature.