Merge lp:~tapaal-contributor/tapaal/interrupted-scrolling-1938783 into lp:tapaal

Proposed by Lena Ernstsen
Status: Merged
Approved by: Jiri Srba
Approved revision: 1131
Merged at revision: 1131
Proposed branch: lp:~tapaal-contributor/tapaal/interrupted-scrolling-1938783
Merge into: lp:tapaal
Diff against target: 22 lines (+11/-0)
1 file modified
src/dk/aau/cs/gui/TabContent.java (+11/-0)
To merge this branch: bzr merge lp:~tapaal-contributor/tapaal/interrupted-scrolling-1938783
Reviewer Review Type Date Requested Status
Jiri Srba Approve
Kenneth Yrke Jørgensen code Approve
Review via email: mp+406648@code.launchpad.net

Commit message

Scroll will not be interrupted by arcs anymore

Description of the change

When hitting an arc or arc point while scrolling it will not halt

To post a comment you must log in.
Revision history for this message
Kenneth Yrke Jørgensen (yrke) :
review: Approve (code)
Revision history for this message
Jiri Srba (srba) wrote :

tested and works

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/dk/aau/cs/gui/TabContent.java'
--- src/dk/aau/cs/gui/TabContent.java 2021-07-27 12:51:40 +0000
+++ src/dk/aau/cs/gui/TabContent.java 2021-08-04 11:22:35 +0000
@@ -2760,7 +2760,18 @@
2760 e->e.pno instanceof TimedTransitionComponent && e.a == MouseAction.wheel,2760 e->e.pno instanceof TimedTransitionComponent && e.a == MouseAction.wheel,
2761 e->timedTranstionMouseWheelWithShift(((TimedTransitionComponent) e.pno), ((MouseWheelEvent) e.e))2761 e->timedTranstionMouseWheelWithShift(((TimedTransitionComponent) e.pno), ((MouseWheelEvent) e.e))
2762 );2762 );
2763 registerEvent(
2764 e->e.pno instanceof Arc && e.a == MouseAction.wheel,
2765 e->arcMouseWheel((PetriNetObject) e.pno, e.e)
2766 );
2767 registerEvent(
2768 e->e.pno instanceof ArcPathPoint && e.a == MouseAction.wheel,
2769 e->arcMouseWheel(((PetriNetObject) e.pno), e.e)
2770 );
2771 }
27632772
2773 private void arcMouseWheel(PetriNetObject pno, MouseEvent e) {
2774 pno.getParent().dispatchEvent(e);
2764 }2775 }
27652776
2766 private void timedTranstionMouseWheelWithShift(TimedTransitionComponent p, MouseWheelEvent e) {2777 private void timedTranstionMouseWheelWithShift(TimedTransitionComponent p, MouseWheelEvent e) {

Subscribers

People subscribed via source and target branches