@playcanvas/supersplat-viewer 1.12.1 → 1.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/public/index.js +4 -4
- package/public/index.js.map +1 -1
package/package.json
CHANGED
package/public/index.js
CHANGED
|
@@ -102308,14 +102308,14 @@ const initJoystick = (dom, events, state) => {
|
|
|
102308
102308
|
const stickCenterX = (joystickHeight - stickSize) / 2; // 36px - left position when centered (for 2D mode)
|
|
102309
102309
|
const maxStickTravel = stickCenterY; // can travel 36px up or down from center
|
|
102310
102310
|
// Fixed joystick position (bottom-left corner with safe area)
|
|
102311
|
-
const joystickFixedX =
|
|
102311
|
+
const joystickFixedX = 70;
|
|
102312
102312
|
const joystickFixedY = () => window.innerHeight - 140;
|
|
102313
102313
|
// Joystick touch state
|
|
102314
102314
|
let joystickPointerId = null;
|
|
102315
102315
|
let joystickValueX = 0; // -1 to 1, negative = left, positive = right
|
|
102316
102316
|
let joystickValueY = 0; // -1 to 1, negative = forward, positive = backward
|
|
102317
102317
|
// Joystick mode: '1d' for vertical only, '2d' for full directional
|
|
102318
|
-
let joystickMode = '
|
|
102318
|
+
let joystickMode = '2d';
|
|
102319
102319
|
// Double-tap detection for mode toggle
|
|
102320
102320
|
let lastTapTime = 0;
|
|
102321
102321
|
// Update joystick visibility based on camera mode and input mode
|
|
@@ -105395,7 +105395,7 @@ const initXr = (global) => {
|
|
|
105395
105395
|
});
|
|
105396
105396
|
};
|
|
105397
105397
|
|
|
105398
|
-
var version = "1.12.
|
|
105398
|
+
var version = "1.12.3";
|
|
105399
105399
|
|
|
105400
105400
|
const loadGsplat = async (app, config, progressCallback) => {
|
|
105401
105401
|
const { contents, contentUrl, unified, aa } = config;
|
|
@@ -105460,7 +105460,7 @@ const main = (app, camera, settingsJson, config) => {
|
|
|
105460
105460
|
readyToRender: false,
|
|
105461
105461
|
hqMode: true,
|
|
105462
105462
|
progress: 0,
|
|
105463
|
-
inputMode: 'desktop',
|
|
105463
|
+
inputMode: platform.mobile ? 'touch' : 'desktop',
|
|
105464
105464
|
cameraMode: 'orbit',
|
|
105465
105465
|
hasAnimation: false,
|
|
105466
105466
|
animationDuration: 0,
|