Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Michael Ochmann
trakr.
Commits
285db009
Commit
285db009
authored
Jul 16, 2018
by
Michael Ochmann
Browse files
.
parent
31a18ca5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/javascript/controllers/HeightMapViewController.js
View file @
285db009
...
@@ -123,7 +123,7 @@ class HeightMapViewController extends UIViewController {
...
@@ -123,7 +123,7 @@ class HeightMapViewController extends UIViewController {
if
(
!
this
.
drag
)
if
(
!
this
.
drag
)
return
;
return
;
let
delta
=
event
.
changedTouches
[
0
].
clientX
-
this
.
lastX
;
let
delta
=
event
.
changedTouches
[
0
].
clientX
-
this
.
lastX
;
if
(
this
.
translated
+
delta
>
0
||
(
this
.
translated
+
delta
)
<
(
this
.
heightmapWidth
-
40
+
this
.
canvas
.
width
)
)
if
(
this
.
translated
+
delta
>
0
)
return
;
return
;
this
.
clear
();
this
.
clear
();
this
.
translated
+=
delta
;
this
.
translated
+=
delta
;
...
...
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