CesiumGS / CesiumGS/cesium

The pinch gesture on a laptop trackpad does not zoom in

Open
#12,772 2 comments 2 reactions 0 assignees View on GitHub
category - camera theme - ease-of-use type - bug
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

### What happened?

I'm using a Lenovo ThinkPad laptop with a trackpad and a touch screen (the laptop's screen is a touch screen).

When I pinch to zoom on the trackpad, the Cesium viewer doesn't seem to do anything. I can two-finger drag to zoom in and out just fine, but pinching to zoom on the trackpad doesn't seem to work.

Pinching to zoom on the touch screen itself works great however. It's just the trackpad that doesn't seem to zoom when pinching.

(In contrast, other 3D tools like ThreeJS seem to properly zoom when I pinch on the trackpad).

### Reproduction steps

1. Open Cesium sandcastle
2. Pinch in and out on the laptop's trackpad (move two fingers closer together, or farther from one another)
3. Notice that the viewer does not move. No zoom action occurs

As mentioned earlier, I'm using a Lenovo Thinkpad 20XL with the trackpad.

For the expected behavior, go to any threejs example (i.e the [keyframes example](https://threejs.org/examples/webgl_animation_keyframes.html)) and pinch on the trackpad and the view will zoom in and out.

Is trackpad pinch-to-zoom supported in CesiumJS?

### Sandcastle example

_No response_

### Environment

Browser: Microsoft Edge
CesiumJS Version: Cesium 1.13.1
Operating System: Windows 11

Laptop: Lenovo ThinkPad XL20

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in Cesium Sandcastle with the listed Edge, Windows 11, and Lenovo ThinkPad setup, then trace how the viewer handles trackpad pinch input compared with two-finger dragging. Done means pinch-in and pinch-out reliably zoom the Cesium viewer while touch-screen pinch and existing two-finger dragging continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.