wieringen / tinyscrollbar

A lightweight cross browser javascript scrollbar.
http://baijs.com/tinyscrollbar
Other
398 stars 202 forks source link

.noSelect does not allow to highlight text on touch event #62

Open AndrewBu opened 8 years ago

AndrewBu commented 8 years ago

When i try to highlight text on touch event, the text does not highlight, because the body is assigned class .noSelect in the ontouchstart event.

function _start(event, gotoMouse) { if(self.hasContentToSroll) { $("body").addClass("noSelect"); .... } }

Maybe, you should assign .noSelect to the ontouchmove event. Is there a reason why .noSelect is assigned to the ontouchstart event?