Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow disabling multi-touch roll in SparkControls/PointerControls#60

Merged
dmarcos merged 1 commit intosparkjsdev:mainfrom
asundqui:feature/pointer-roll-scale
Jun 21, 2025
Merged

Allow disabling multi-touch roll in SparkControls/PointerControls#60
dmarcos merged 1 commit intosparkjsdev:mainfrom
asundqui:feature/pointer-roll-scale

Conversation

@asundqui
Copy link
Contributor

Added option pointerRollScale (default 1.0) option to PointerControls to allow disabling touch controls rolling by setting it to 0.0.

Example:

    const controls = new SparkControls({ canvas: renderer.domElement });
    controls.pointerControls.pointerRollScale = 0;

Tested and verified setting it to 0 disables multi-touch roll in the controls. Addresses issue #46

@asundqui asundqui requested review from 61cygni, bmild and dmarcos June 21, 2025 00:50
@asundqui asundqui self-assigned this Jun 21, 2025
@dmarcos dmarcos merged commit ba143fe into sparkjsdev:main Jun 21, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments