mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-05 21:57:20 +00:00
Fix glitch showing/hiding Preview window with the toolbar button on sprites with canvas size > Preview window viewport
This commit is contained in:
parent
95247255ac
commit
e516d26fa8
@ -233,6 +233,10 @@ void View::onSizeHint(SizeHintEvent& ev)
|
||||
|
||||
void View::onSetViewScroll(const gfx::Point& pt)
|
||||
{
|
||||
// If the view is not visible, we don't adjust any screen region.
|
||||
if (!isVisible())
|
||||
return;
|
||||
|
||||
Point oldScroll = viewScroll();
|
||||
Size maxsize = getScrollableSize();
|
||||
Size visible = visibleSize();
|
||||
|
Loading…
Reference in New Issue
Block a user