From ccae01d421db5f197e39ab834adf8e5c141629f5 Mon Sep 17 00:00:00 2001 From: Humdinger Date: Sat, 23 Jun 2012 20:16:58 +0200 Subject: [PATCH] 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. --- src/apps/showimage/ShowImageView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/showimage/ShowImageView.cpp b/src/apps/showimage/ShowImageView.cpp index 4551cf1f42..22e14a4c52 100644 --- a/src/apps/showimage/ShowImageView.cpp +++ b/src/apps/showimage/ShowImageView.cpp @@ -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);