Page MenuHomePhabricator

The RevisionSlider should abort dragging&dropping if a user presses ESC
Closed, ResolvedPublic

Description

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.

Related Objects

Mentioned In
rERSL4ed98516102f: Fix handling of escape key
rERSL6e4c2232f5b4: Fix handling of escape key
rERSL8af607c980fc: Fix handling of escape key
rERSLf754cd0c6bb4: Fix handling of escape key
rERSLc6acc0cfc604: Fix handling of escape key
rERSL734a35d7067d: Fix handling of escape key
rERSLb33ccef6a88a: Fix handling of escape key
rERSLd3b9dae6039d: Fix handling of escape key
rERSL4a66a4ac106e: Fix handling of escape key
rERSL2212abb2712d: Fix handling of escape key
rERSL4ef2519bcca1: Fix handling of escape key
rERSLed988dc9a66b: Introduce ESC key detection during dragging RevisionSlider
rERSLb169f6237a3d: Introduce ESC key detection during dragging RevisionSlider
rERSL7ed3755cb74a: Introduce ESC key detection during dragging RevisionSlider
rERSL6d12816a5a5e: Introduce ESC key detection during dragging RevisionSlider
rERSL8a325bed2bb2: Introduce ESC key detection during dragging RevisionSlider
rERSL6a0d9e5e7ecd: Introduce ESC key detection during dragging RevisionSlider
rERSL480a37d18f7e: Introduce ESC key detection during dragging RevisionSlider
rERSL7c5e22c1f85b: Introduce ESC key detection during dragging RevisionSlider
rERSLf1d7f314eaea: Introduce ESC key detection during dragging RevisionSlider
rERSLd6d1ff93617a: Introduce ESC key detection during dragging RevisionSlider
rERSL63e54addabab: Introduce ESC key detection during dragging RevisionSlider
rERSL42c528fe5f16: Introduce ESC key detection during dragging RevisionSlider
rERSL33e83211f963: Introduce ESC key detection during dragging
rERSL2254c18104be: Introduce ESC key detection during dragging RevisionSlider
rERSLc98aa16e31a9: Introduces ESC key detection during dragging
rERSL2eea144e77a8: Introduces ESC key detection during dragging

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 325823 had a related patch set uploaded (by Pppery):
Introduces ESC key detection during dragging

https://gerrit.wikimedia.org/r/325823

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

https://gerrit.wikimedia.org/r/333224

Change 333224 merged by jenkins-bot:
Fix positioning error with draggable, revert and grid

https://gerrit.wikimedia.org/r/333224

Change 325823 merged by jenkins-bot:
Introduce ESC key detection during dragging RevisionSlider

https://gerrit.wikimedia.org/r/325823

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

https://gerrit.wikimedia.org/r/354175

Change 354175 had a related patch set uploaded (by Pppery; owner: Pppery):
[mediawiki/extensions/RevisionSlider@master] Fix handling of escape key

https://gerrit.wikimedia.org/r/354175

Pppery moved this task from Demoed to Proposed on the WMDE-TechWish board.

Change 354175 merged by jenkins-bot:
[mediawiki/extensions/RevisionSlider@master] Fix handling of escape key

https://gerrit.wikimedia.org/r/354175

One more bug fixed - again