Comments (3)
This is strange since I don't really disable mousewheel scrolling in the disable function - I just set the "enabled" variable to false. Then I check if the "enabled" variable is true or false in the event handlers. So when you scroll using the mousewheel an event is triggered and if the variable "enabled" is true the scroller should scroll. If it's false the event handler will still execute but nothing will happen since "enabled" is false.
So I'm thinking there might be something else going on here?
Regarding the resetting of the scroller position to the starting point, is most likely a legacy thing. It's been that way since the first version and I'm not really sure why I implemented it that way in the first place, but I think it was because I wanted to reset the position if you replaced the content in the scroller. Or there could have been some browser bug that prevented the scroller from working in a specific browser.
I will do some testing and remove it if I find it's not needed. You can comment out rows 1026-1027 in the source code and make a new minified version here: http://marijnhaverbeke.nl/uglifyjs
from smooth-div-scroll.
Indeed, I allready commented those lines, wihtout any side effects :)
And I abandonned the disabling / enabling actions because I'm triggering loading stuffs before the end is reached, so I don't need any disabling anymore.
Thanks !
from smooth-div-scroll.
Okay! I will close this issue now!
The result is that the resetting of the scroller position will be removed in the next update since I don't think it fills any purpose anymore.
from smooth-div-scroll.
Related Issues (20)
- jScrollPane and Smooth Div Scroll
- Click to center image function not working in scroll gallery HOT 1
- How to change horizontal scroll to vertical scroll in Smooth Div Scoll HOT 2
- Responsive Height
- scroll stopping when mouse out from left and right icons
- I've used this as a navbar on mobile devices and it's worked great until recently...
- Wrong setting when using kinetic.js
- Uncaught TypeError: Cannot read property 'show' of undefined HOT 2
- HTML5 Validation Messages Not Displayed
- Enable vertical Page-Scrolling HOT 4
- Can we use this plugin in commercial website? Is it free? Thanks. HOT 1
- pauseOnHover option when autoScrollingMode: "always" is applied HOT 1
- Still cannot click on href on touchscreens HOT 1
- The last div doesn't show up
- When touch scrolling is enabled, links within an individual block aren't clickable
- Auto Scroll Speed when Mouse approaches ARROWS
- jQuery 3 broke plugin... HOT 2
- Uncaught TypeError: $(...).smoothDivScroll is not a function HOT 1
- Uncaught TypeError: $(...).smoothDivScroll is not a function HOT 1
- Can possible to provide React integration example
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 smooth-div-scroll.