|
10 | 10 | /* global getControllerWorldLocation, Tablet, WebTablet:true, HMD, Settings, Script,
|
11 | 11 | Vec3, Quat, MyAvatar, Entities, Overlays, Camera, Messages, Xform, clamp, Controller, Mat4, resizeTablet */
|
12 | 12 |
|
13 |
| -Script.include(Script.resolvePath("../libraries/utils.js")); |
14 |
| -Script.include(Script.resolvePath("../libraries/controllers.js")); |
15 |
| -Script.include(Script.resolvePath("../libraries/Xform.js")); |
| 13 | +Script.include(Script.resolvePath("utils.js")); |
| 14 | +Script.include(Script.resolvePath("controllers.js")); |
| 15 | +Script.include(Script.resolvePath("Xform.js")); |
16 | 16 |
|
17 | 17 | var Y_AXIS = {x: 0, y: 1, z: 0};
|
18 | 18 | var X_AXIS = {x: 1, y: 0, z: 0};
|
@@ -380,8 +380,8 @@ WebTablet.prototype.calculateWorldAttitudeRelativeToCamera = function (windowPos
|
380 | 380 | var TABLET_TEXEL_PADDING = {x: 60, y: 90};
|
381 | 381 | var X_CLAMP = (DESKTOP_TABLET_SCALE / 100) * ((this.getTabletTextureResolution().x / 2) + TABLET_TEXEL_PADDING.x);
|
382 | 382 | var Y_CLAMP = (DESKTOP_TABLET_SCALE / 100) * ((this.getTabletTextureResolution().y / 2) + TABLET_TEXEL_PADDING.y);
|
383 |
| - windowPos.x = clamp(windowPos.x, X_CLAMP, Window.innerWidth - X_CLAMP); |
384 |
| - windowPos.y = clamp(windowPos.y, Y_CLAMP, Window.innerHeight - Y_CLAMP); |
| 383 | + windowPos.x = hifiClamp(windowPos.x, X_CLAMP, Window.innerWidth - X_CLAMP); |
| 384 | + windowPos.y = hifiClamp(windowPos.y, Y_CLAMP, Window.innerHeight - Y_CLAMP); |
385 | 385 |
|
386 | 386 | var fov = (Settings.getValue('fieldOfView') || DEFAULT_VERTICAL_FIELD_OF_VIEW) * (Math.PI / 180);
|
387 | 387 |
|
|
0 commit comments