summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/pencil-tool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/tools/pencil-tool.cpp')
-rw-r--r--src/ui/tools/pencil-tool.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/tools/pencil-tool.cpp b/src/ui/tools/pencil-tool.cpp
index d3e226a84..fd876270d 100644
--- a/src/ui/tools/pencil-tool.cpp
+++ b/src/ui/tools/pencil-tool.cpp
@@ -257,6 +257,7 @@ bool PencilTool::_handleButtonPress(GdkEventButton const &bevent) {
break;
}
+ set_high_motion_precision();
this->_is_drawing = true;
}
return ret;
@@ -399,6 +400,8 @@ bool PencilTool::_handleMotionNotify(GdkEventMotion const &mevent) {
bool PencilTool::_handleButtonRelease(GdkEventButton const &revent) {
bool ret = false;
+ set_high_motion_precision(false);
+
if ( revent.button == 1 && this->_is_drawing && !this->space_panning) {
this->_is_drawing = false;