1. It should be touched as much as the area set by the TOUCH_AREA property in the... 68/267368/1
authorJoogab Yun <joogab.yun@samsung.com>
Fri, 12 Mar 2021 02:51:25 +0000 (11:51 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Thu, 2 Dec 2021 08:13:44 +0000 (17:13 +0900)
commitf2a7ad48f34809bfd73e9de833fdadba8ed0826a
treed1266e2f98329802ee7644efa89a5ed57270ee3b
parent5fe02043a4906852a41851717fcfd30f0867340e
1. It should be touched as much as the area set by the TOUCH_AREA property in the View.

There was no consideration for TouchArea in SphereTest().

For information 'TouchArea' sets the touch area of ​​the View.

2. Change TOUCH_AREA to TOUCH_AREA_OFFSET

You can set offset the touch area.

for example)
  Actor actor = Actor::New();
  actor.SetProperty(Actor::Property::SIZE, Vector2(10.0f, 10.0f));
  actor.SetProperty(DevelActor::Property::TOUCH_AREA_OFFSET, Rect<int>(-100, 100, 100, -100));
  actor.TouchedSignal().Connect(OnTouchCallback);

then touch area is 210x210.
this is actor.width + touchAreaOffset.right - touchAreaOffset.left
and actor.height + touchAreaOffset.bottom -touchAreaOffset.top

Change-Id: I472bf191e68990e88f73abcf680066b140b73be9
automated-tests/src/dali/utc-Dali-Actor.cpp
automated-tests/src/dali/utc-Dali-TouchProcessing.cpp [changed mode: 0755->0644]
dali/devel-api/actors/actor-devel.h
dali/internal/event/actors/actor-impl.cpp [changed mode: 0755->0644]
dali/internal/event/actors/actor-impl.h [changed mode: 0755->0644]
dali/internal/event/actors/actor-property-handler.cpp [changed mode: 0755->0644]
dali/internal/event/events/ray-test.cpp [changed mode: 0755->0644]