[Tizen] Be a bit smarter with SetFocusedActorPosition 16/288516/1 accepted/tizen/6.0/unified/20230221.003240 submit/tizen_6.0/20230220.132938
authorArtur Świgoń <a.swigon@samsung.com>
Fri, 17 Feb 2023 12:51:59 +0000 (13:51 +0100)
committerArtur Świgoń <a.swigon@samsung.com>
Fri, 17 Feb 2023 12:52:04 +0000 (13:52 +0100)
commitb60468ef0b42b0fbb186e956ca8f8d7800284d5d
tree16343613aa7e1a10268b6d6cb52a5d882c839830
parentbcbd6be013be671e821b914d9bbb964ad9cd9799
[Tizen] Be a bit smarter with SetFocusedActorPosition

The previous calculation method was to always use the center point of a given
actor, regardless of the position of the touch event that caused it to be
focused. In the tricky scenario where a smaller actor is overlaid on top of a
bigger actor such that the smaller actor covers the center of the bigger actor,
a double-tap-and-hold gesture meant to activate the bigger actor would activate
the smaller actor instead.

The calculation method introduced by this patch is a little bit better, but
still not ideal. However, the HighlightedObjectInfo D-Bus method has only two
parameters, the coordinates, taken from GetFocusedActorPosition, which are then
forwarded back into the app as a touch event, so there isn't much more that
could be done in DALi to address this issue.

Change-Id: I03f291f3dece2bd2c10fedd7ce22f8791230b6f4
dali-toolkit/internal/accessibility-manager/accessibility-manager-impl.cpp