#4236 Fix corner rect panning bug (#5817)

* check mouse button in

* same for center rectangle

---------

Co-authored-by: 49fl <ircsurfer33@gmail.com>
This commit is contained in:
Andrew Varga
2025-03-17 19:45:20 +01:00
committed by GitHub
parent 40f4450995
commit dca78acdf2

View File

@ -862,6 +862,8 @@ export const modelingMachine = setup({
}
sceneInfra.setCallbacks({
onClick: (args) => {
if (!args) return
if (args.mouseEvent.which !== 1) return
const twoD = args.intersectionPoint?.twoD
if (twoD) {
sceneInfra.modelingSend({
@ -893,6 +895,8 @@ export const modelingMachine = setup({
}
sceneInfra.setCallbacks({
onClick: (args) => {
if (!args) return
if (args.mouseEvent.which !== 1) return
const twoD = args.intersectionPoint?.twoD
if (twoD) {
sceneInfra.modelingSend({