Currently, if I start dragging&dropping in the revision slider, and at the same time I press the Esc key on my keyboard, nothing happens.
It would be nice if the Esc key could cancel the dragging&dropping, as acceptable on computers.
Guycn2 | |
Jul 21 2016, 3:16 AM |
F5299298: T140965 - Patch 325823-13.ogv | |
Jan 17 2017, 10:22 AM |
Currently, if I start dragging&dropping in the revision slider, and at the same time I press the Esc key on my keyboard, nothing happens.
It would be nice if the Esc key could cancel the dragging&dropping, as acceptable on computers.
Change 325823 had a related patch set uploaded (by Pppery):
Introduces ESC key detection during dragging
In the current version of the proposed patch, when aborting the process at least more then once, the pointer randomly returns to a slightly different position then intended. See the video below.
in the second attempt the pointer returns to a position is (very) slightly above the original place. In the third attempt it returns to a position below. It seems to be random how big the misplacement is. Sometimes its more above, sometimes more below, sometimes its happening on the X-Axis.
I could just confirm, that this seems to be a bug in jquery.ui.draggable. Core is using 1.9.2 at the moment and the bug is fixed starting with 1.11.4.
As already mentioned upgrading the libs in core is not trivial, since there might be breaking changes with other parts of the code or other extensions using them. The only alternative would be re-positioning the pointers when they return to their original place.
Change 333224 had a related patch set uploaded (by WMDE-Fisch):
Fix positioning error with draggable, revert and grid
Change 333224 merged by jenkins-bot:
Fix positioning error with draggable, revert and grid
Change 325823 merged by jenkins-bot:
Introduce ESC key detection during dragging RevisionSlider
This doesn't seem to work anymore. Instead, pressing ESC has the same affect as letting go of the mouse, which changes the position of the pointers.
Change 354175 had a related patch set uploaded (by Pppery; owner: Pppery):
[mediawiki/extensions/RevisionSlider@master] Fix handling of escape key
Change 354175 had a related patch set uploaded (by Pppery; owner: Pppery):
[mediawiki/extensions/RevisionSlider@master] Fix handling of escape key
Change 354175 merged by jenkins-bot:
[mediawiki/extensions/RevisionSlider@master] Fix handling of escape key