Skip to content
This repository was archived by the owner on Jun 3, 2020. It is now read-only.

Commit 59e197e

Browse files
committed
Merge pull request #81 from JohnJYates/master
fix bug from issue #80
2 parents b3d70aa + db6e578 commit 59e197e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

html5/web/webgl/solar3d/web/solar.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class Solar3DApplication {
122122

123123
void toggleFullscreen() {
124124
if (_fullScreened) {
125-
document.cancelFullScreen();
125+
document.exitFullscreen();
126126
} else {
127127
canvas.requestFullscreen();
128128
}
@@ -185,8 +185,8 @@ class Solar3DApplication {
185185
if (event is WheelEvent) {
186186
WheelEvent e = event;
187187
controller.mouseSensitivity = 720.0;
188-
controller.accumDX -= e.deltaX;
189-
controller.accumDY += e.deltaY;
188+
controller.accumDX -= e.deltaX.round();
189+
controller.accumDY += e.deltaY.round();
190190
}
191191
event.preventDefault();
192192
}

0 commit comments

Comments
 (0)