Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
e091c406
Commit
e091c406
authored
Dec 22, 2016
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e5cda959
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
cell/view/mobileTouch.js
cell/view/mobileTouch.js
+19
-10
No files found.
cell/view/mobileTouch.js
View file @
e091c406
...
@@ -66,6 +66,13 @@ function (window, undefined)
...
@@ -66,6 +66,13 @@ function (window, undefined)
{
{
var
_res
=
this
.
WB
.
ConvertLogicToXY
(
x
,
y
);
var
_res
=
this
.
WB
.
ConvertLogicToXY
(
x
,
y
);
var
_point
=
{
X
:
_res
.
X
,
Y
:
_res
.
Y
,
Page
:
0
,
DrawPage
:
0
};
var
_point
=
{
X
:
_res
.
X
,
Y
:
_res
.
Y
,
Page
:
0
,
DrawPage
:
0
};
if
(
isGlobal
!==
false
)
{
_point
.
X
+=
this
.
Offset
.
X
;
_point
.
Y
+=
this
.
Offset
.
Y
;
}
return
_point
;
return
_point
;
};
};
CMobileDelegateEditorCell
.
prototype
.
ConvertCoordsFromCursor
=
function
(
x
,
y
)
CMobileDelegateEditorCell
.
prototype
.
ConvertCoordsFromCursor
=
function
(
x
,
y
)
...
@@ -250,8 +257,10 @@ function (window, undefined)
...
@@ -250,8 +257,10 @@ function (window, undefined)
CMobileDelegateEditorCell
.
prototype
.
_convertLogicToEvent
=
function
(
e
,
x
,
y
,
page
)
CMobileDelegateEditorCell
.
prototype
.
_convertLogicToEvent
=
function
(
e
,
x
,
y
,
page
)
{
{
var
_e
=
{};
var
_e
=
{};
_e
.
pageX
=
x
/
AscBrowser
.
zoom
;
var
_pos
=
this
.
ConvertCoordsToCursor
(
x
,
y
,
0
);
_e
.
pageY
=
y
/
AscBrowser
.
zoom
;
_e
.
pageX
=
_pos
.
X
/
AscBrowser
.
zoom
;
_e
.
pageY
=
_pos
.
Y
/
AscBrowser
.
zoom
;
_e
.
altKey
=
global_mouseEvent
.
AltKey
;
_e
.
altKey
=
global_mouseEvent
.
AltKey
;
_e
.
shiftKey
=
global_mouseEvent
.
ShiftKey
;
_e
.
shiftKey
=
global_mouseEvent
.
ShiftKey
;
...
@@ -402,11 +411,11 @@ function (window, undefined)
...
@@ -402,11 +411,11 @@ function (window, undefined)
}
}
case
AscCommon
.
MobileTouchMode
.
Select
:
case
AscCommon
.
MobileTouchMode
.
Select
:
{
{
var
_x1
=
this
.
RectSelect1
.
x
;
var
_x1
=
this
.
RectSelect1
.
x
+
0.5
;
var
_y1
=
this
.
RectSelect1
.
y
+
this
.
RectSelect1
.
h
/
2
;
var
_y1
=
this
.
RectSelect1
.
y
+
0.5
;
var
_x2
=
this
.
RectSelect2
.
x
+
this
.
RectSelect2
.
w
;
var
_x2
=
this
.
RectSelect2
.
x
+
this
.
RectSelect2
.
w
-
0.5
;
var
_y2
=
this
.
RectSelect2
.
y
+
this
.
RectSelect2
.
h
/
2
;
var
_y2
=
this
.
RectSelect2
.
y
+
this
.
RectSelect2
.
h
-
0.5
;
if
(
1
==
this
.
DragSelect
)
if
(
1
==
this
.
DragSelect
)
{
{
...
@@ -424,7 +433,7 @@ function (window, undefined)
...
@@ -424,7 +433,7 @@ function (window, undefined)
this
.
delegate
.
Logic_OnMouseDown
(
global_mouseEvent
,
__X
,
__Y
,
this
.
PageSelect2
);
this
.
delegate
.
Logic_OnMouseDown
(
global_mouseEvent
,
__X
,
__Y
,
this
.
PageSelect2
);
}
}
var
pos1
=
this
.
delegate
.
ConvertCoordsFromCursor
(
global_mouseEvent
.
X
,
global_mouseEven
t
.
Y
);
var
pos1
=
this
.
delegate
.
ConvertCoordsFromCursor
(
global_mouseEvent
.
X
+
this
.
delegate
.
Offset
.
X
,
global_mouseEvent
.
Y
+
this
.
delegate
.
Offse
t
.
Y
);
this
.
delegate
.
Logic_OnMouseMove
(
global_mouseEvent
,
pos1
.
X
,
pos1
.
Y
,
pos1
.
Page
);
this
.
delegate
.
Logic_OnMouseMove
(
global_mouseEvent
,
pos1
.
X
,
pos1
.
Y
,
pos1
.
Page
);
}
}
else
if
(
2
==
this
.
DragSelect
)
else
if
(
2
==
this
.
DragSelect
)
...
@@ -443,7 +452,7 @@ function (window, undefined)
...
@@ -443,7 +452,7 @@ function (window, undefined)
this
.
delegate
.
Logic_OnMouseDown
(
global_mouseEvent
,
__X
,
__Y
,
this
.
PageSelect1
);
this
.
delegate
.
Logic_OnMouseDown
(
global_mouseEvent
,
__X
,
__Y
,
this
.
PageSelect1
);
}
}
var
pos4
=
this
.
delegate
.
ConvertCoordsFromCursor
(
global_mouseEvent
.
X
,
global_mouseEven
t
.
Y
);
var
pos4
=
this
.
delegate
.
ConvertCoordsFromCursor
(
global_mouseEvent
.
X
+
this
.
delegate
.
Offset
.
X
,
global_mouseEvent
.
Y
+
this
.
delegate
.
Offse
t
.
Y
);
this
.
delegate
.
Logic_OnMouseMove
(
global_mouseEvent
,
pos4
.
X
,
pos4
.
Y
,
pos4
.
Page
);
this
.
delegate
.
Logic_OnMouseMove
(
global_mouseEvent
,
pos4
.
X
,
pos4
.
Y
,
pos4
.
Page
);
}
}
break
;
break
;
...
@@ -574,7 +583,7 @@ function (window, undefined)
...
@@ -574,7 +583,7 @@ function (window, undefined)
{
{
// во время движения может смениться порядок ректов
// во время движения может смениться порядок ректов
global_mouseEvent
.
ClickCount
=
1
;
global_mouseEvent
.
ClickCount
=
1
;
var
pos
=
this
.
delegate
.
ConvertCoordsFromCursor
(
global_mouseEvent
.
X
,
global_mouseEven
t
.
Y
);
var
pos
=
this
.
delegate
.
ConvertCoordsFromCursor
(
global_mouseEvent
.
X
+
this
.
delegate
.
Offset
.
X
,
global_mouseEvent
.
Y
+
this
.
delegate
.
Offse
t
.
Y
);
this
.
delegate
.
Logic_OnMouseMove
(
global_mouseEvent
,
pos
.
X
,
pos
.
Y
,
pos
.
Page
);
this
.
delegate
.
Logic_OnMouseMove
(
global_mouseEvent
,
pos
.
X
,
pos
.
Y
,
pos
.
Page
);
AscCommon
.
stopEvent
(
e
);
AscCommon
.
stopEvent
(
e
);
break
;
break
;
...
@@ -646,7 +655,7 @@ function (window, undefined)
...
@@ -646,7 +655,7 @@ function (window, undefined)
// ничего не нужно делать
// ничего не нужно делать
this
.
DragSelect
=
0
;
this
.
DragSelect
=
0
;
this
.
Mode
=
AscCommon
.
MobileTouchMode
.
None
;
this
.
Mode
=
AscCommon
.
MobileTouchMode
.
None
;
var
pos
=
this
.
delegate
.
ConvertCoordsFromCursor
(
global_mouseEvent
.
X
,
global_mouseEven
t
.
Y
);
var
pos
=
this
.
delegate
.
ConvertCoordsFromCursor
(
global_mouseEvent
.
X
+
this
.
delegate
.
Offset
.
X
,
global_mouseEvent
.
Y
+
this
.
delegate
.
Offse
t
.
Y
);
this
.
delegate
.
Logic_OnMouseUp
(
global_mouseEvent
,
pos
.
X
,
pos
.
Y
,
pos
.
Page
);
this
.
delegate
.
Logic_OnMouseUp
(
global_mouseEvent
,
pos
.
X
,
pos
.
Y
,
pos
.
Page
);
AscCommon
.
stopEvent
(
e
);
AscCommon
.
stopEvent
(
e
);
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment