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
8642ab6c
Commit
8642ab6c
authored
Oct 18, 2017
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add local variable AscBrowser
parent
a76e5938
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
common/scroll.js
common/scroll.js
+5
-5
No files found.
common/scroll.js
View file @
8642ab6c
...
...
@@ -1621,7 +1621,7 @@ function ScrollObject( elemID, settings, dbg ) {
this
.
startColorFadeOutStart
=
_HEXTORGB_
(
this
.
settings
.
scrollerColorOver
).
R
;
this
.
startColorFadeInOutStart
=
-
1
;
this
.
IsRetina
=
Asc
Common
.
Asc
Browser
.
isRetina
;
this
.
IsRetina
=
AscBrowser
.
isRetina
;
this
.
piperImgVert
=
[
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
)];
this
.
piperImgHor
=
[
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
)];
...
...
@@ -1790,8 +1790,8 @@ ScrollObject.prototype = {
}
// return relative mouse position
var
mouseX
=
((
evt
.
clientX
*
Asc
Common
.
Asc
Browser
.
zoom
)
>>
0
)
-
left
+
window
.
pageXOffset
;
var
mouseY
=
((
evt
.
clientY
*
Asc
Common
.
Asc
Browser
.
zoom
)
>>
0
)
-
top
+
window
.
pageYOffset
;
var
mouseX
=
((
evt
.
clientX
*
AscBrowser
.
zoom
)
>>
0
)
-
left
+
window
.
pageXOffset
;
var
mouseY
=
((
evt
.
clientY
*
AscBrowser
.
zoom
)
>>
0
)
-
top
+
window
.
pageYOffset
;
return
{
x
:
mouseX
,
...
...
@@ -1852,9 +1852,9 @@ ScrollObject.prototype = {
},
Repos
:
function
(
settings
,
bIsHorAttack
,
bIsVerAttack
)
{
if
(
this
.
IsRetina
!=
Asc
Common
.
Asc
Browser
.
isRetina
)
if
(
this
.
IsRetina
!=
AscBrowser
.
isRetina
)
{
this
.
IsRetina
=
Asc
Common
.
Asc
Browser
.
isRetina
;
this
.
IsRetina
=
AscBrowser
.
isRetina
;
this
.
ArrowDrawer
.
InitSize
(
this
.
settings
.
arrowSizeH
,
this
.
settings
.
arrowSizeW
,
this
.
IsRetina
);
}
...
...
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