Skip to main content

keyboardScale

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

Scale factor of the rotation via keyboard.
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.
Only applied for the keyboard rotation.

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