summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-03-24 16:41:18 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-30 09:23:44 +0200
commit0d6a07f6080f153de34f8bfceae394e64ed27b6f (patch)
tree5bfb8204213da59392c640a9f47100b1030c8eab /sd
parent9eb26a9a0cef3f574de92c3891c4e71273693bff (diff)
sd tiled rendering: increase hit testing tolerance
Change-Id: Ibab0aeb6b9b605d1cc964e7858404b1e0919fc10
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/fusel.cxx7
-rw-r--r--sd/source/ui/inc/fupoor.hxx2
2 files changed, 9 insertions, 0 deletions
diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx
index 0cb164db2a53..e4c42a5a2de6 100644
--- a/sd/source/ui/func/fusel.cxx
+++ b/sd/source/ui/func/fusel.cxx
@@ -155,6 +155,13 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
sal_uInt16 nDrgLog = sal_uInt16 ( mpWindow->PixelToLogic(Size(DRGPIX,0)).Width() );
sal_uInt16 nHitLog = sal_uInt16 ( mpWindow->PixelToLogic(Size(HITPIX,0)).Width() );
+ if (mpDoc->isTiledRendering())
+ {
+ // When tiled rendering, we always work in logic units, use the non-pixel constants.
+ nDrgLog = DRGLOG;
+ nHitLog = HITLOG;
+ }
+
// The following code is executed for right clicks as well as for left
// clicks in order to modify the selection for the right button as a
// preparation for the context menu. The functions BegMarkObject() and
diff --git a/sd/source/ui/inc/fupoor.hxx b/sd/source/ui/inc/fupoor.hxx
index 7e7a0c6d4511..00817a769d5a 100644
--- a/sd/source/ui/inc/fupoor.hxx
+++ b/sd/source/ui/inc/fupoor.hxx
@@ -48,7 +48,9 @@ class FuPoor : public SimpleReferenceComponent
{
public:
static const int HITPIX = 2; // Hit-Toleranz in Pixel
+ static const int HITLOG = 53; // Hit tolerance in mm100
static const int DRGPIX = 2; // Drag MinMove in Pixel
+ static const int DRGLOG = 53; // Minimal drag move in mm100
TYPEINFO();