Open
Description
When resizing the input scaled correctly but the "select" box to focus stays relative to the original canvas width.
Something like this fixes it . 1359 - 1362
var self = this,
relativeX = self._ctx.canvas ? self._x / ( self._ctx.canvas.width / self._ctx.canvas.offsetWidth) : self._x,
relativeY = self._ctx.canvas ? self._y / ( self._ctx.canvas.height / self._ctx.canvas.offsetHeight) : self._y,
xLeft = x >= relativeX + self._extraX,
xRight = x <= relativeX + self._extraX + self._width + self._padding * 2,
yTop = y >= relativeY + self._extraY,
yBottom = y <= relativeY + self._extraY + self._height + self._padding * 2;
Metadata
Metadata
Assignees
Labels
No labels