-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Content is selected when dragging in Safari #997
Comments
Try add this to your sortable item css: .item{
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Chrome/Safari/Opera */
-khtml-user-select: none; /* Konqueror */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
not supported by any browser */
} this worked for me. ref: http://stackoverflow.com/questions/826782/how-to-disable-text-selection-highlighting-using-css |
This also fixed a firefox bug for me where I could only drag a paragraph of line-wrapped text inside a h4 with a handle class if I picked it up by the first line. On subsequent lines text was being selected instead of the paragraph moving. This behavior wasn't present in Chrome or Edge. |
For me it worked in Chrome. However, I found so many other bugs that I decided to go back to Jquery Sortable. I use this directive to work with angular and is fully functional: https://github.com/angular-ui/ui-sortable |
@RubaXa Fantastic! thank you for the fix. When is the next version release planned? |
February 19 |
I still experience this in Firefox 52 with Sortable 1.5.1. |
I do to in FF 53. If I put a -moz-user-select: none; rule on items or on container, the drag n' drop is buggy (mouse button needs to be released, then you can drag, and click will drop). Could not find a fix. Really annoying :( |
I could hack a working solution putting a -moz-user-select: none; rule on the container and using RubaXa's patch, with a condition for Firefox : |
Hi, I still experience this in Safari 11.0.1 & macOS 10.13.1. But I set a css attribute to the parent element { user-select: none ; -webkit-... } , by this can fix the bug |
Related to #1935 I am also experiencing this |
I have this issue on Chromium 127.0.6533.88 , so it seems it not only happens in Safari. |
I'm using FullCalendar which still requires the forceFallback option (see this issue), and so the problem of dragging causing text selection still occurs. If you are using Tailwindcss however there is an easy workaround - for the containing element ( Hope this helps. Thanks to https://github.com/alexrudall for helping me get these 2 great libraries working together. |
Using Safari 9.1.1 in (OSX 10.11.5)
When
forceFallback
option is enabled, and you try to drag an element, the content is being selected.Demo: http://jsbin.com/vebetod/edit?html,js,output
Related issue: #628 and it's fix #742
Will post a PR in a few minutes
The text was updated successfully, but these errors were encountered: