Defining pinch bounds
Dorkside opened this issue · comments
James MARTIN commented
Tried several ways of defining pinch bounds but none seem to work.
usePinch(pinchHandler, {
domTarget: rootNode,
eventOptions: {
passive: false,
distanceBounds: {max: 1000, min: -900}
},
})
Is this supposed to constrain the value inside of da
?
James MARTIN commented
Found a solution :
const p = usePinch(pinchHandler, {
domTarget: rootNode,
eventOptions: {
passive: false
},
});
p.config.pinch.bounds[0] = [-900, 1000]