Skip to content
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

Merged
merged 2 commits into from Jan 18, 2013

Conversation

ckosmowski
Copy link
Contributor

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.

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,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added distance

Copy link
Owner

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?

Copy link
Contributor Author

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,
Copy link
Contributor Author

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

mleibman added a commit that referenced this pull request Jan 18, 2013
Add the distance delay to the header drag code.
@mleibman mleibman merged commit 64b0440 into mleibman:master Jan 18, 2013
dholcombe added a commit to dholcombe/SlickGrid that referenced this pull request Aug 12, 2013
Equivalent to Merge pull request mleibman#517 from ckosmowski/master on Jan 18,
2013 in the mleibman master.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants