Commit b3e1f4b7e26a56c6c46a38768e2c2d517e99c7ce
1 parent
fd12b468
Exists in
master
and in
68 other branches
FIX: Slice scroll / volume plane relation under OSX
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
invesalius/data/viewer_slice.py
... | ... | @@ -720,7 +720,8 @@ class Viewer(wx.Panel): |
720 | 720 | |
721 | 721 | def __bind_events_wx(self): |
722 | 722 | self.scroll.Bind(wx.EVT_SCROLL, self.OnScrollBar) |
723 | - self.scroll.Bind(wx.EVT_SCROLL_ENDSCROLL, self.OnScrollBarRelease) | |
723 | + self.scroll.Bind(wx.EVT_SCROLL_THUMBTRACK, self.OnScrollBarRelease) | |
724 | + #self.scroll.Bind(wx.EVT_SCROLL_ENDSCROLL, self.OnScrollBarRelease) | |
724 | 725 | self.interactor.Bind(wx.EVT_KEY_DOWN, self.OnKeyDown) |
725 | 726 | self.interactor.Bind(wx.EVT_CONTEXT_MENU, self.OnContextMenu) |
726 | 727 | |
... | ... | @@ -1037,8 +1038,10 @@ class Viewer(wx.Panel): |
1037 | 1038 | evt.Skip() |
1038 | 1039 | |
1039 | 1040 | def OnScrollBarRelease(self, evt): |
1041 | + print "OnScrollBarRelease" | |
1040 | 1042 | self.UpdateSlice3D(self.pos) |
1041 | - | |
1043 | + evt.Skip() | |
1044 | + | |
1042 | 1045 | def OnKeyDown(self, evt=None): |
1043 | 1046 | pos = self.scroll.GetThumbPosition() |
1044 | 1047 | ... | ... |