You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug zui.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):
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):
The text was updated successfully, but these errors were encountered: