#include "OCCViewer_ViewSketcher.h"
#include "OCCViewer_ViewWindow.h"
#include "OCCViewer_ViewPort3d.h"
+#include "ViewerTools_ScreenScaling.h"
#include "QtxRubberBand.h"
{
OCCViewer_ViewPort3d* avp = mypViewWindow->getViewPort();
+ // We need to downscale only non-system events here
+ if (!e->spontaneous())
+ {
+ // Make a copy event with updated coordinates
+ e = ViewerTools_ScreenScaling::getDpiAwareEvent(e, false);
+ }
+
QMouseEvent* me = (QMouseEvent*)e;
SketchState state = EnTrain;
bool ignore = false;