joehewitt / scrollability

Imitates iOS native scrolling in JavaScript.
http://joehewitt.github.com/scrollability
Other
1.78k stars 147 forks source link

Make scrollability works in none-mobile browsers, so we can test it easier #5

Closed Tin closed 13 years ago

Tin commented 13 years ago

Adapted the touch events by mouse click events, so we can simulate touch events in desktop browsers.

doctyper commented 13 years ago

How about this rather than UA sniffing:

var isTouch = "ontouchstart" in window;
joehewitt commented 13 years ago

I used to have this working but I pulled it out since I find it extremely awkward to scroll with a mouse. I guess the only reason to support desktop scrolling is so we can use superior desktop debugging tools.

joehewitt commented 13 years ago

Doctyper's suggestion is definitely better than the UA sniffing, and is what I was using before I pulled out desktop support. Tin, could you make that change and also remove the easeOutExpo changes? You can submit that as a separate pull request, since it's not quite related.

Tin commented 13 years ago

Yes, Doctyper's suggestion is definitely right. I pushed this changes. I'm new on using pull request, I should not using master branch for pull this pull request. I will close this one, and send another.