Skip to content

Commit

Permalink
Use image width that is being drawn
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Aug 13, 2020
1 parent 9b036ff commit 1a895c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/zui/Zui.hx
Expand Up @@ -663,9 +663,9 @@ class Zui {
var down = getPushed(h);
var released = getReleased(h);
var hover = getHover(h);
if(curRatio == -1 && (started || down || released || hover)){
if(_windowX + _x > inputX || inputX > (_windowX+ _x + image.width) ){
down = started = released = hover = false;
if (curRatio == -1 && (started || down || released || hover)) {
if (inputX < _windowX + _x || inputX > _windowX + _x + w) {
started = down = released = hover = false;
}
}
g.color = tint;
Expand Down

0 comments on commit 1a895c1

Please sign in to comment.