Commit 285db009 authored by Michael Ochmann's avatar Michael Ochmann
Browse files

.

parent 31a18ca5
......@@ -123,7 +123,7 @@ class HeightMapViewController extends UIViewController {
if (!this.drag)
return;
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;
this.clear();
this.translated += delta;
......
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