-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
Drag and Drop - how to disable the whole tree from scrolling up when clicked on #577
Comments
Did you set the |
Thanks for the quick response! I did set dnd.focusOnClick to false and nothing changes: the problem (the div's jumping up) continues to happen on Chrome and Safari but not on Firefox. This is the page I'm testing on: http://kfecms.sleimanmatar.com/test-fancyTree3.html |
Martin, perhaps it is worth to try to set dnd.focusOnClick = false (now it is true) on the DnD demo sample page on your website (http://wwwendt.de/tech/fancytree/demo/#sample-ext-dnd.html). I can then test on my end too. |
It seems to be a combination of |
Yes, I see. Is there a default 'tabindex=0' embedded anywhere in the fancytree code? My webpage as well as your sample demo page don't contain tabindex=0. |
Yes, tabindex is currently added, so the container behaves like a control and can receive keyboard focus. I opened a ticket: https://bugs.jqueryui.com/ticket/14940 |
The jQuery team closed the ticket as notabug, so there is not much we can do. |
Apologies for the slow response, I've been on holiday. Thanks for the tip on // this.$container.attr("tabindex", this.options.tabbable ? "0" : "-1"); |
The next release will have an option This settings $("#ree").fancytree({
...
tabindex: "",
titlesTabbable: false
}); should fix your issue, but I assume it will break keyboard navigation. |
Also related: #570 |
Thanks, |
This question / problem was posted on StackOverflow earlier today.
The Fancytree drag and drop demo example (on the official website) has the problem too: when I click on a the tree's container (anywehre... on a node or on blank space) the div container jumps up.
While writing this post, I tested the scenario described below on three different browsers (Chrome v. 48.0.2564, Safari 9.0.1, Firefox 43.0.4) on Mac OS X El Capitan and the problem doesn't happen on Firefox but does happen on the other two browsers.
To replicate the problem:
This is particularly a UX problem when I want to double-click on a node because the first click makes the tree jump so the second click goes somewhere unintended.
Environment
enabled/affected extensions: DnD
The text was updated successfully, but these errors were encountered: