Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# to native line endings on checkout.
*.c text
*.h text
*.py text
*.py text eol=lf

# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf
Expand Down
9 changes: 9 additions & 0 deletions nodezator/winman/states/loadedfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
MOUSEMOTION,
MOUSEBUTTONUP,
MOUSEBUTTONDOWN,
MOUSEWHEEL,
)


Expand Down Expand Up @@ -73,6 +74,14 @@ def loaded_file_event_handling(self):
if event.type == QUIT:
raise QuitAppException

### MOUSEWHEEL
elif event.type == MOUSEWHEEL:
mod = SERVICES_NS.get_pressed_mod_keys()
if mod & KMOD_SHIFT: #KMOD_CTRL:
APP_REFS.ea.scroll(event.y*50, event.x*50)
else:
APP_REFS.ea.scroll(event.x*50, event.y*50)

### MOUSEMOTION

elif event.type == MOUSEMOTION:
Expand Down