Comments (7)
Hey, just to let you know this hasn't gone unnoticed. I have a post-it on my desk to take a look at it.
Feel free to fork and try to find a solution yourself in the meantime. You'll need to branch from rework
.
from react-reorder.
I cannot reproduce this using the examples in the readme.
I've tried setting autoScroll={false}
on the kanban and horizontal lock examples, and it successfully prevents the auto scrolling.
Are you perhaps using a browser that is doing additional scrolling for you?
Can you give me any more details, or set up a small repo with an example of it not working?
from react-reorder.
Are you perhaps using a browser that is doing additional scrolling for you?
Can you give me any more details, or set up a small repo with an example of it not working?
Yeah, I created a test repo here: https://github.com/Tenpi/autoscroll-example
(Run with commands npm install
and npm start
)
I am using this with electron, so I am actually not 100% sure if the problem is from this package, or if it's a bug with electron itself.
With autoScroll={false}
, it stops scrolling down, but you can still scroll up. With autoScroll={true}
, you can scroll down, but scrolling up is at least 2x faster than scrolling down, which is the problem that I wanted to fix. My intention was to disable auto-scrolling in order to implement my own version that is a little slower.
from react-reorder.
Oooh, this gives me an idea. I think I had an issue similar to this recently. It's something to do with how browsers handle overflow and new content loading in: https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-anchor
If you set overflow-anchor: none
on your scrollable element it might fix it... or make it worse. XD
I don't have time to look right now, but may do later today.
from react-reorder.
If you set
overflow-anchor: none
on your scrollable element it might fix it... or make it worse. XD
Thanks! This fixed it. So it was just a CSS issue, I had to disable the scroll anchoring for every element.
* {
overflow-anchor: none;
}
from react-reorder.
Awesome, glad that's sorted it. 😁
I'll have to add something to the examples/readme.
from react-reorder.
Hopefully you won't need to implement your own scrolling now too. 😉
from react-reorder.
Related Issues (20)
- Unable to make 3.0.0-alpha.7 work with react 16.9 HOT 5
- Less performant deeper in the dom? HOT 1
- Please add events on "drag start" and "drag end" HOT 3
- Another complete re-write in TypeScript, with hooks, React 16-17 support, and more HOT 4
- can't reorder
- TypeError: this.state.draggedStyle is null HOT 2
- Update PropTypes HOT 1
- Warning: This synthetic event is reused for performance reasons. HOT 3
- placeholder class is not added when dragging input fields HOT 3
- Overriding sorting behavior HOT 10
- V3 Alpha Issues HOT 47
- Warning with react 15.5.0 HOT 12
- can't control dragged div HOT 17
- Images Reloading/Flashing HOT 9
- Error: Expected reorderId to be a string. Instead got undefined HOT 12
- Tidy up prop documentation in readme (v3) HOT 2
- Support React v16 HOT 11
- Issues with embedded images? HOT 6
- Unable to set reorder to a button HOT 3
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 react-reorder.