-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[moveColumn] Sorting by clicking column header broken - triggering move instead #3333
Comments
This is super strange. It only appears on Chrome and restarting the browser a few times made the issue go away. Chrome version is 42.0311.90.m please close if you can't reproduce |
It's working for me, but I'll leave it open and see if anyone else has issues. |
Sorting by click with mouse at header still is not working. |
Yes...its acting weird. It needs to be clicked 2-4 times and it goes through stages asc, desc and no-sorting. |
It looks like chrome calls the move function when the mouse has not moved much and the other browsers do not. Changing the downFn to track the event.pageX and then checking it in the moveFn will correct this. So in the downFn add the $scope.previousMouseX = event.pageX;
Then in the move function check for movement.
|
OK, I did the work on the downFn and move stuff, so I guess I get to fix this. |
@enigmak @PaulL1 Would you like me to make a PR for this? I had messed with it previously but hadnt gotten around to commiting the fix |
@Zorkling : that would be useful. |
@PaulL1 Pull request ready, my bad for the double commit, got too hasty with the push In case anyone is curious, the issue has existed for almost a couple of years, heres a chromium issue that describes alot of the behavior around it |
This is primarily to deal with a bug in chrome where move events are sometimes triggered even when the cursor does not move. Fix angular-ui#3333
I think this was introduced in the last few days, but clicking on the header to sort a column no longer works
you can see this in http://ui-grid.info/docs/#/tutorial/102_sorting
Clicking on the name/gender columns has no effect, but using the menu works
I will try to isolate the change that caused this. I am currently on 7df7234
The text was updated successfully, but these errors were encountered: