v0.8.0: fixed crashes involving ghouls, and scroll areas not deactivating
This commit is contained in:
@@ -40,7 +40,14 @@ public class ScrollArea extends PointerArea {
|
||||
private Signal.Listener<ScrollEvent> scrollListener = new Signal.Listener<ScrollEvent>() {
|
||||
@Override
|
||||
public boolean onSignal(ScrollEvent event) {
|
||||
if (event != null && target.overlapsScreenPoint( (int)event.pos.x, (int)event.pos.y )){
|
||||
|
||||
boolean hit = event != null && target.overlapsScreenPoint( (int)event.pos.x, (int)event.pos.y );
|
||||
|
||||
if (!isActive()) {
|
||||
return (hit && blockWhenInactive);
|
||||
}
|
||||
|
||||
if (hit){
|
||||
onScroll( event );
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user