Skip to main content

pointerScale

Type[number, number]
Default[1, 1]
Added inv4.0.0

Scale factor of the rotation via mouse or touch.
The values are [Scale of left/right movement (=yaw), Scale of up/down movement (= pitch)].

Example

Below is an example of setting the yaw scale and the pitch scale by 2 and 0.5 each.

{
rotate: {
pointerScale: [
2,
0.5
]
},
projection: new EquirectProjection({
src: "/pano/equirect/veste.jpg",
})
}