Ticket #123 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

dnd is broken in Opera (text gets selected on drag)

Reported by: eugene@… Owned by: anonymous
Priority: normal Milestone:
Component: General Version: 0.1
Severity: normal Keywords:
Cc:

Description

This patch enables drag-n-drop for Opera. Tested with Opera 8.50.

Attachments

dojo.dnd.2.patch (2.2 kB) - added by eugene@… 3 years ago.
this patch fixes dnd files

Change History

Changed 3 years ago by eugene@…

this patch fixes dnd files

Changed 3 years ago by eugene@…

These fixes are similar to #122. I tested the code using Opera 8.50, IE6, FF 1.4.

Changed 3 years ago by psowden

  • status changed from new to closed
  • resolution set to fixed

(In [1609]) applying (modified) patch to fix drag and drop in Opera. fixes #122 and fixes #123

Changed 3 years ago by eugene@…

I agree that enabling e.preventDefault() on mouse down event is bad. But without it drag operations produce chaotic selection in Opera. I'll try to investigate how to deal with it.

BTW, one possible (and completely safe) solution is to have drag handles. It looks like that was the original idea (API is there) but no code to support it whatsoever.

Changed 3 years ago by psowden

  • status changed from closed to reopened
  • resolution deleted
  • summary changed from [patch] dnd fix for Opera browsers to dnd is broken in Opera (text gets selected on drag)

I'll reopen this bug to track this issue.

Changed 3 years ago by eugene@…

I enabled e.preventDefault() to see what breaks and I don't see any problems. I tested Opera 8.50, IE6, FF:

  1. I can click links in drag sources without problems.
  2. I cannot select text in drag sources --- it causes dragging.

I think it's how it's supposed to be. Could you verify that? If you see any unwanted side-effects, please tell me, so I can look for them and fix 'em.

Changed 3 years ago by eugene@…

  • priority changed from normal to high

Changed 3 years ago by eugene@…

  • priority changed from high to normal

sorry

Changed 3 years ago by psowden

  • status changed from reopened to closed
  • resolution set to fixed

This has been fixed by renabling e.preventDefault on mouss down over drag sources. This can present some undesirable behaviour for complex drag sources, for example if they contain text that should be selectable.

Marking as fixed for now, by [1667]

Note: See TracTickets for help on using tickets.