Fixed issue when auto-showing toolbar in fullscreen mode.

If you've zoomed in fullscreen mode and moved the mouse to the top of the
screen, the toolbar didn't appear. You had to scroll up to the top of zoomed
image first. Using the screen coords instead of the view coords fixes this.
This commit is contained in:
Humdinger
2012-06-23 20:16:58 +02:00
parent 55713eef96
commit ccae01d421
+1 -1
View File
@@ -1172,7 +1172,7 @@ ShowImageView::MouseMoved(BPoint point, uint32 state, const BMessage* message)
fHideCursorCountDown = HIDE_CURSOR_DELAY_TIME;
if (fHideCursor) {
// Show toolbar when mouse hits top 15 pixels, hide otherwise
_ShowToolBarIfEnabled(point.y <= 15);
_ShowToolBarIfEnabled(ConvertToScreen(point).y <= 15);
}
if (fCreatingSelection)
_UpdateSelectionRect(point, false);