Skip to content

Commit

Permalink
Try moving the canavas a bit after loading a level file or room.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaythebusinessgoose authored and gmjosack committed Dec 18, 2023
1 parent b2d0163 commit 94bf137
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modlunky2/ui/levels/shared/multi_canvas_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ def update_scroll_region(self):
self.scrollable_canvas.update_idletasks()
self.scrollable_canvas.config(scrollregion=self.scrollable_frame.bbox("all"))

self.scrollable_canvas.xview_moveto(.5)
self.scrollable_canvas.yview_moveto(.2)

def _on_mousewheel(self, event, hbar, vbar, canvas):
scroll_dir = None
if event.num == 5 or event.delta == -120:
Expand Down

0 comments on commit 94bf137

Please sign in to comment.