metalpriest94 / The_Old_Days

Development of a tile-based strategy-game. Formerly named 'GridBoard'.
0 stars 0 forks source link

Fix map automatically moving after start-up #21

Closed metalpriest94 closed 7 years ago

metalpriest94 commented 7 years ago

What to do After loading a map-file/sav-file, the map in panelGame starts moving by itself, regardless of the cursor position. It stops after moving the cursor to the edge of the frame.

metalpriest94 commented 7 years ago

Setting the initial value of GridScroller's isInComponent to false simulates that the cursor is not in the frame, causing to allow scrolling only after moving the cursor in the frame.