Describe the bugzui.addLimits(0.2, 2, 'scale') works well, but zui.addLimits(0, 1000, 'x') and zui.addLimits(0, 1000, 'y') not working as what I expected.
To Reproduce
var two = new Two({
fullscreen: true,
autostart: true,
type: Two.Types.canvas
})
two.appendTo(document.body)
var zui = new Two.ZUI(stage)
Expected behavior
It should be works for the limitation of x and y when zui.translateSurface(dx, dy)
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please select one):
[x] Code executes in browser (e.g: using script tag to load library)
Describe the bug
zui.addLimits(0.2, 2, 'scale')
works well, butzui.addLimits(0, 1000, 'x')
andzui.addLimits(0, 1000, 'y')
not working as what I expected.To Reproduce
Expected behavior It should be works for the limitation of x and y when
zui.translateSurface(dx, dy)
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please select one):
Desktop (please complete the following information):