Fakultas Ilmu Komputer UI

Commit 33c05ea2 authored by Rachmat Ridwan's avatar Rachmat Ridwan
Browse files

Fix touch event error

parent df69ec4e
Pipeline #43187 passed with stage
in 2 minutes and 36 seconds
......@@ -132,7 +132,7 @@ function startTrackball(event) {
if (event.touches) {
posXInit = event.touches[0].screenX;
posYInit = event.touches[1].screenY;
posYInit = event.touches[0].screenY;
}
initPhi = phi;
......@@ -151,7 +151,7 @@ function trackMouseForTrackball(event) {
if (event.touches) {
deltaX = event.touches[0].screenX;
deltaY = event.touches[1].screenY;
deltaY = event.touches[0].screenY;
}
deltaX -= posXInit;
......
Supports Markdown
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