mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-08 06:48:51 +00:00
Fix DnD of events in Safari
This commit is contained in:
@@ -778,6 +778,9 @@ SOGoEventDragPointerHandler.prototype = {
|
||||
var coordinates = this.currentCoordinates.getDelta(this.containerCoordinates);
|
||||
var container = SOGoEventDragUtilities().getEventsViewNode();
|
||||
|
||||
if (container.clientWidth == 0)
|
||||
/* a hack for Safari */
|
||||
container = $(container.id);
|
||||
if (coordinates.x < 0 || coordinates.x > container.clientWidth
|
||||
|| coordinates.y < 0 || coordinates.y > container.clientHeight)
|
||||
coordinates = null;
|
||||
|
||||
Reference in New Issue
Block a user