Fix the minimum pinch gesture distance 40/215540/6
authorJiyun Yang <ji.yang@samsung.com>
Thu, 10 Oct 2019 08:29:41 +0000 (17:29 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Thu, 10 Oct 2019 11:29:21 +0000 (20:29 +0900)
commit7dd51999bd7d8030c5dc82df0f97e4e0d46a7e75
tree8bc7e814bfd8471a9ab8292f2a9f38357b47f193
parent05878c24a70080018266949b76ce0b82a07ee9f3
Fix the minimum pinch gesture distance

Previously, the minimum pinch distance is determined by dividing the screen height by 85,
which is proportional to the screen height.

The problem is that, on the big size screen (or law dpi) devices,
the user have to make a long distance between their fingers to make a pinch gesture,
it makes the user misunderstand that the pinch gesture is not workoring properly.

This patch fixes the problem by calculating minimum pinch distance using screen dpi.

Change-Id: Iaab2d37f43421d53f9aa14060bd55465df4f9343
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
dali/internal/event/events/pinch-gesture/pinch-gesture-processor.cpp
dali/internal/event/events/pinch-gesture/pinch-gesture-recognizer.cpp
dali/internal/event/events/pinch-gesture/pinch-gesture-recognizer.h