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
Please add the distance delay to the standard code. #517
Conversation
Added a small distance delay on the sortable to prevent users from unintended triggering of the reordering. (Happens all the time i'm using slickgrid). i.e. the users tries to sort the column but fails since his mouse was still on the move a little bit and 1px is enough to trigger reordeing here. Please try, it still feels very responsive.
@@ -656,6 +656,7 @@ if (typeof Slick === "undefined") { | |||
$headers.filter(":ui-sortable").sortable("destroy"); | |||
$headers.sortable({ | |||
containment: "parent", | |||
distance: 5, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added distance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you change this to 3px?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That will also do it. Changed it in the pull request.
Am 18.01.2013 21:20, schrieb Michael Leibman:
In slick.grid.js:
@@ -656,6 +656,7 @@ if (typeof Slick === "undefined") {
$headers.filter(":ui-sortable").sortable("destroy");
$headers.sortable({
containment: "parent",
distance: 5,
Could you change this to 3px?
—
Reply to this email directly or view it on GitHub
https://github.com/mleibman/SlickGrid/pull/517/files#r2701389.
@@ -656,6 +656,7 @@ if (typeof Slick === "undefined") { | |||
$headers.filter(":ui-sortable").sortable("destroy"); | |||
$headers.sortable({ | |||
containment: "parent", | |||
distance: 3, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the distance value to 3
Add the distance delay to the header drag code.
Equivalent to Merge pull request mleibman#517 from ckosmowski/master on Jan 18, 2013 in the mleibman master.
Added a small distance delay on the sortable to prevent users from unintended
triggering of the reordering. (Happens all the time i'm using slickgrid).
i.e. the users tries to sort the column but fails since his mouse was still
on the move a little bit and 1px is enough to trigger reordeing here.
Please try, it still feels very responsive.