Skip to content

Instantly share code, notes, and snippets.

@gaogao-9
Last active March 6, 2016 11:29
Show Gist options
  • Save gaogao-9/255af38bad35ac388072 to your computer and use it in GitHub Desktop.
Save gaogao-9/255af38bad35ac388072 to your computer and use it in GitHub Desktop.
紙の上の魔法使いスクロールバーのバグ修正の話
  • scenario/GraphicalScrollbar.tjs 186行目
- drawState(mask.getMainPixel(x, y) ? 2 : 0);
+ drawState((mask.imageLeft<=x && x<(mask.imageLeft+mask.imageWidth) && mask.imageTop<=y && y<(mask.imageTop+mask.imageHeight)) ? 2 : 0);
  • scenario/GraphicalScrollbar.tjs 192行目
- if(mask === void || mask.getMainPixel(cursorX, cursorY))
+ if(mask === void || (mask.imageLeft<=cursorX && cursorX<(mask.imageLeft+mask.imageWidth) && mask.imageTop<=cursorY && cursorY<(mask.imageTop+mask.imageHeight)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment