Comments (7)
I think one of the key thing is to seperate the Vertical Scroll bar from the .jspScrollable container. This issue is noticable in Touch screen devices(iOS) when a user taps on the scrollbar, the touch event is invoked on the outer container (.jspScrollable). So instead of this structure
So the scrollbar is seperate from the container and hence wont have any touch conflicts
from jscrollpane.
I'm not sure if that is necessary. And it would be a big change to implement changing the structure like that... Does Alex's suggestion above not work? There is also an alternative implementation here: aFarkas/jScrollPane@553612c - as soon as I have access to a touchscreen device I will try both and commit the one which works best...
from jscrollpane.
Using browser sniffing isn't needed simply bind to the touchstart, touchmove touchend events. Then you support all devices, wich have a similiar or equal touchevent implementation. Like I alread commented on my commit. I think there will be a lot greate scripts for handling touchscreen devices/events soon. So my implementation should be seen as a temporal solution.
from jscrollpane.
Touchscreen support now implemented in the trunk. Thanks for all of the suggestions and code! Let me know if you notice any problems, I've only been able to test on Android so far...
from jscrollpane.
hey vitch,
Can you please share the code ?
Thanks
from jscrollpane.
Sure - the code is all available in this repository or for download from the jScrollPane site!
https://github.com/vitch/jScrollPane
http://jscrollpane.kelvinluck.com/
from jscrollpane.
thanks bro... works like charm :)
from jscrollpane.
Related Issues (20)
- main prop removed from package.json -> Build failed HOT 9
- Incorrect height of scrolling element after reinitialization. HOT 18
- Line with console.log HOT 9
- archive project / search for maintainers HOT 6
- reinitialise method: do not always apply new options HOT 1
- Improvement: pause and resume methods HOT 2
- Broken after updating from 2.0.22 to 2.1.2: jScrollPane is not a function (npm, webpack) HOT 29
- NPM shows rc releases tagged as "latest" HOT 2
- Focus on a input in a table will cause auto scrolling to top under jQuery 3 HOT 10
- Missing kinetic scroll on touch devices HOT 9
- Scrollpane is jumping to bottom HOT 2
- Console error in jquery when use cursor keys HOT 8
- When using stickToBottom and alwaysShowVScroll it does not start by sticking HOT 5
- How to get jScrollPane from node_modules HOT 1
- Jquery 3.5.0 Security Fix Closing HTML Tags HOT 4
- Jquery 4.0: Use of number-typed values is deprecated HOT 4
- click don't work after JScrollPane and Ajax HOT 10
- Error in jScrollPane - v2.2.3-rc.1 - jquery.jscrollpane.js HOT 3
- Still "border-box" problem HOT 3
- jScrollPane loads its own jQuery when used in webpack HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jscrollpane.