Commit 76d3ff5f authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47995 954022d7-b5bf-4e40-9824-e11837661b57
parent 62c87eb9
......@@ -4212,15 +4212,15 @@ function DrawingObjects() {
//-----------------------------------------------------------------------------------
_this.graphicObjectMouseDown = function(e, x, y) {
_this.controller.onMouseDown( e, pxToMm(x + scrollOffset.x), pxToMm(y + scrollOffset.y) );
_this.controller.onMouseDown( e, pxToMm(x - scrollOffset.x), pxToMm(y - scrollOffset.y) );
}
_this.graphicObjectMouseMove = function(e, x, y) {
_this.controller.onMouseMove( e, pxToMm(x + scrollOffset.x), pxToMm(y + scrollOffset.y) );
_this.controller.onMouseMove( e, pxToMm(x - scrollOffset.x), pxToMm(y - scrollOffset.y) );
}
_this.graphicObjectMouseUp = function(e, x, y) {
_this.controller.onMouseUp( e, pxToMm(x + scrollOffset.x), pxToMm(y + scrollOffset.y) );
_this.controller.onMouseUp( e, pxToMm(x - scrollOffset.x), pxToMm(y - scrollOffset.y) );
}
//-----------------------------------------------------------------------------------
......@@ -4964,7 +4964,7 @@ function DrawingObjects() {
var objectInfo = { cursor: null, data: null, isShape: false };
var asc = window["Asc"];
var graphicObjectInfo = _this.controller.isPointInDrawingObjects( pxToMm(x), pxToMm(y) );
var graphicObjectInfo = _this.controller.isPointInDrawingObjects( pxToMm(x - scrollOffset.x), pxToMm(y - scrollOffset.y) );
if ( graphicObjectInfo ) {
objectInfo.data = graphicObjectInfo.objectId;
......
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