Last modified: 2014-07-08 20:59:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T62432, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60432 - CodeEditor's drag and drop only works after a small delay
CodeEditor's drag and drop only works after a small delay
Status: PATCH_TO_REVIEW
Product: MediaWiki extensions
Classification: Unclassified
CodeEditor (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: upstream
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-25 21:08 UTC by Eduard Braun
Modified: 2014-07-08 20:59 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Eduard Braun 2014-01-25 21:08:37 UTC
Dragging and dropping text (as an alternative to keyboard or context menu copy and paste commands) inside CodeEditor does not work.

Since this is basic functionality in every other editor I know this should also be supported by CodeEditor.
Comment 1 Derk-Jan Hartman 2014-03-25 22:38:28 UTC
This works for me in the beta at least: http://en.wikipedia.beta.wmflabs.org/w/index.php?title=Module:HtmlBuilder&action=edit

It might be that the reporter is actually talking about VisualEditor, which indeed does not seem to support drag and drop of text.
Comment 2 Eduard Braun 2014-03-25 23:35:07 UTC
No this definitely is about CodeEditor!

And while I just wanted to write that this is definitely not fixed I just realized during some additional testing that it actually is working... but only somehow.

I don't know if I have a very special way of dragging/dropping but actually dragging only starts after a small delay (note that after clicking highlighted text the cursor only changes to the move cursor after approx. 100 ms). If you start moving the mouse before it will just create a new selection.
However when normally dragging/dropping I start moving the mouse right away. Moving the mouse over the highlighted text, clicking, then *waiting* and only after waiting beginning to move the mouse is just counterintuitive and different from every other program I know.

Since it therefore doesn't seem to be specific to MediaWiki's implementation (Ace's web demo "works" exactly the same) I'll report a bug for Ace directly however. I'll update this bug with the respective info then.
Comment 3 Eduard Braun 2014-03-25 23:50:58 UTC
Upstream bug is https://github.com/ajaxorg/ace/issues/1879

Let's hope it is easy fixable and not some sort of technical limitation.
Comment 4 Derk-Jan Hartman 2014-03-26 00:23:02 UTC
Thank you for clarifying Eduard !
Comment 5 Eduard Braun 2014-03-26 12:23:51 UTC
So as answered in the linked upstream bug it seems this delay is actually configurable.

Nighwing wrote:
You can disable dragDelay by setting editor.setOption("dragDelay", 0)

Can somebody familiar with CodeEditor implement this? I can't see a reason to keep the delay at this point.
Comment 6 Gerrit Notification Bot 2014-03-26 13:06:02 UTC
Change 121044 had a related patch set uploaded by TheDJ:
Remove CodeEditor delay in drag & drop of text

https://gerrit.wikimedia.org/r/121044
Comment 7 Derk-Jan Hartman 2014-06-20 08:43:18 UTC
i still need to wrap this in some platform dependent if constructs.
Comment 8 Derk-Jan Hartman 2014-06-21 15:02:53 UTC
https://github.com/ajaxorg/ace/pull/2012
Comment 9 Eduard Braun 2014-06-21 15:05:17 UTC
Very nice! Thank you for the submission.
Comment 10 Eduard Braun 2014-06-27 20:37:53 UTC
Has been fixed upstream (thanks Derk-Jan):
https://github.com/ajaxorg/ace/commit/63f43da96a1bd2b9894c371fb0feed7e38ef34d6

Let's wait until this fix makes it into MediaWiki's CodeEditor extension...
Comment 11 Gerrit Notification Bot 2014-07-04 12:05:16 UTC
Change 121044 abandoned by TheDJ:
Remove CodeEditor delay in drag & drop of text

Reason:
Fix added upstream.

https://gerrit.wikimedia.org/r/121044
Comment 12 Derk-Jan Hartman 2014-07-04 12:06:18 UTC
Fixed upstream. I'll schedule an update of the code sometime next week.
Comment 13 Gerrit Notification Bot 2014-07-08 20:59:55 UTC
Change 144780 had a related patch set uploaded by TheDJ:
Ace: Update to 08-07-2014

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links