Comments (4)
from touchswipe-jquery-plugin.
I have found also that this leads to console errors as such:
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/6662647093133312
Scrolling performance, using this plugin on desktop devices, is laggy and leaves the UI feeling at times unresponsive and glitchy as the scroll fights the wheel steps down the page.
Commenting out the following function improves scrolling performance and dramatically smooths out the scrolling:-
function wheel(event) {
if (!initDone) {
init();
}
// This is the problematic section of code
// var target = event.target;
// var overflowing = overflowingAncestor(target);
// if (!overflowing || event.defaultPrevented || isNodeName(activeElement, "embed") || (isNodeName(target, "embed") && /\.pdf/i.test(target.src))) {
// return true;
// }
// var deltaX = event.wheelDeltaX || 0;
// var deltaY = event.wheelDeltaY || 0;
// if (!deltaX && !deltaY) {
// deltaY = event.wheelDelta || 0;
// }
// if (!options.touchpadSupport && isTouchpad(deltaY)) {
// return true;
// }
// if (Math.abs(deltaX) > 1.2) {
// deltaX *= options.stepSize / 120;
// }
// if (Math.abs(deltaY) > 1.2) {
// deltaY *= options.stepSize / 120;
// }
// scrollArray(overflowing, -deltaX, -deltaY);
//event.preventDefault();
}
I am unsure at this stage what effect this will have on mobile devices scrolling abilities.
I may opt to implement a device type test before allowing this particular section of code to run, therefore reclaiming scroll performance on Desktop whilst preserving functionality on touch devices.
from touchswipe-jquery-plugin.
I've noticed this is still an issue. Will this be fixed in a future version? Thanks!
from touchswipe-jquery-plugin.
Is this issue fixed?
from touchswipe-jquery-plugin.
Related Issues (20)
- Version number is incorrect HOT 2
- Touchswipe interfering with html widget calendar date picker?
- Uncaught TypeError: $(...).swipe is not a function HOT 3
- Package json "licenses" field uses invalid format, use SPDX expressions instead HOT 1
- hold not firing after longTapThreshold is reached
- carousel bootstrap swipe touch with include slider file to master page
- Uncaught TypeError: ((n.event.special[g.origType] || {}).handle || g.handler).apply is not a function
- non-standard property "zoom" HOT 1
- What is the best way to remove a swipe handler from a page?
- On swipe is phase end not firing
- Ignored attempt to cancel a touchmove event with cancelable=false
- Need help to disable horizontal swiping, please
- minified version doesn't correspond
- Moving range slider right, invokes swiperight HOT 1
- Adding Class To Dom HOT 1
- triggerOnTouchLeave on Android gets script stuck HOT 1
- j
- yos
- How to hang an event on new DOM elements
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 touchswipe-jquery-plugin.