Pan view test.

This commit is contained in:
Denvi
2015-12-05 00:14:00 +05:00
parent 1efed851e9
commit 8f6a455562
2 changed files with 52 additions and 10 deletions

View File

@@ -896,7 +896,8 @@ class FlatCAMDraw(QtCore.QObject):
:param event: Event object dispatched by Matplotlib
:return: None
"""
if self.active_tool is not None:
# Selection with left mouse button
if self.active_tool is not None and event.button is 1:
# Dispatch event to active_tool
msg = self.active_tool.click(self.snap(event.xdata, event.ydata))
self.app.info(msg)