Commit fefbdb13 authored by Frank Bergmann's avatar Frank Bergmann

- GanttEditor:

  Fixed scrolling issue for DnD of Gantt bars
parent f418e558
......@@ -95,9 +95,12 @@ Ext.define('PO.view.gantt.AbstractGanttPanel', {
* because sprites.getBBox() also returns relative coo.
*/
getMousePoint: function(mouseEvent) {
var me = this;
var scroll = me.getEl().getScroll(); // We need to adjust the mouse point by the scroll
var surfaceBaseCoo = this.getXY();
var mouseScreenCoo = mouseEvent.getXY();
var mousePoint = [mouseScreenCoo[0] - surfaceBaseCoo[0], mouseScreenCoo[1] - surfaceBaseCoo[1]]
var mousePoint = [mouseScreenCoo[0] - surfaceBaseCoo[0] + scroll.left, mouseScreenCoo[1] - surfaceBaseCoo[1]]
return mousePoint;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment