-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix IE11 autoscroll behaviour #1308
Conversation
Thanks for this. We are in the middle of changing the event system. It would be good to have this change go into that. I'll post details soon so we can retarget this |
But maybe we could just add this and port it.. |
Can you please check |
I get the same error using |
I will look at this for |
I won't merge this as is as the keyboard sensor has changed completely. Can you please retarget this PR on the |
Sure no problem. Having some issues though, should I be able to build that branch locally? If not, maybe I'll wait until the build is passing to raise PR. Will be easier to try add coverage etc.? Build error➜ react-beautiful-dnd git:(virtual) yarn && yarn build yarn install v1.16.0 [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... warning " > [email protected]" has incorrect peer dependency "eslint@^4.19.1 || ^5.3.0". warning "eslint-config-airbnb > [email protected]" has incorrect peer dependency "eslint@^4.19.1 || ^5.3.0". warning " > [email protected]" has incorrect peer dependency "eslint@^3 || ^4 || ^5". [4/4] 🔨 Building fresh packages... ✨ Done in 18.80s. yarn run v1.16.0 $ yarn build:clean && yarn build:dist && yarn build:flow $ rimraf dist $ rollup -c./src/index.js → dist/react-beautiful-dnd.js... error Command failed with exit code 1. Just for the record, I did a bit more testing and scroll-via-drag does raise the same error in IE11 for both keyboard and mouse drags in |
The virtual branch is a bit messy The window scroll logic is now handled in |
It is okay if the branch doesn't pass for the PR |
Most of the tests are broken :p |
I think all it needs is #1384, but I haven't been able to manually test, and unsure how to unit test now that the Any chance you would be able include it in an alpha release, and I'll test it? |
I will do one soon @nathanpower |
Repro:
console.log(action.type)
herefixed list with fixed sidebar
Bug (IE11 only):
Invariant failed: Window scrolling is currently not supported for fixed lists. Aborting drag
MOVE_BY_WINDOW_SCROLL
action dispatched (whereas it is not in Chrome)I am not sure I have the full context of how window scrolling is managed here, so this could be the wrong approach, but in any case I suspect that the fix in #1088 did not have the intended effect.
Happy to look for other solutions if this is not the way to go.
Fantastic library and API, many thanks for your efforts 👏