Community
Participate
Working Groups
0.2 M5 Every now and then when I'm working on Chrome/windows I select text in the editor too fast and a text drag starts. The Editor is not prepared to handle this event and is left in an inconsistent state when drag ends (scroll all the lines out of screen and back fixes). The editor should stop this drag start from happening. I have tried, to no avail, stop this event using: el.draggable="false"; el.WebkitUserDrag="none"; el.ondragstart = function (e) {e.preventDefault(); return false;}; for el I tried clientDiv, line div, line child. Setting draggable="false" causes selection to stop working, the other two (WebkitUserDrag/ondragstart) didn't do anything.
This happens to me every now and then too. I always get very scared and try to reload the page as soon as possible.
I have seen this as well. It is not necessary to reload the page. The model still has the old text. You just need to redraw the visible lines by scrolling or arrowing up and down.
I think the next step here is to try to isolate this problem to a simpler html file and try to get help from chrome dev. This bug is really annoying to user on chrome.
Simon just had this problem on Safari/Windows too. This can be a webkit problem.
I released changes that will prevent the text from being dropped. This will avoid messing up the contents of the editor. It does not prevent the drag from starting. Somehow the dragstart event which we are hooking to stop the drag only happens after the mouse button is released. I believe this is a bug in chrome.
Thanks Silenio! It's not perfect but a really great workaround. This was just killing me before.
*** Bug 339028 has been marked as a duplicate of this bug. ***
I think we can close this bug since we support drag&drop now. If the user accidently executes a drag&drop the undo can be used to revert the change. There is a bug in chrome where we can't stop some drag start events (in the case D&D is disabled), but fixing it is outside our scope (and we already stop to drop as an workaround).