Skip to content

Fix touch events not dispatched to UIElement that have a RenderTransform - #650

Merged
dr1rrb merged 1 commit into
masterfrom
dev/dr/TransEvtDispatch
Mar 6, 2019
Merged

dr1rrb merged 1 commit into
masterfrom
dev/dr/TransEvtDispatch

Conversation

@dr1rrb

@dr1rrb dr1rrb commented Mar 6, 2019

Copy link
Copy Markdown
Member

PR Type

  • Bugfix

What is the current behavior?

Touch events are not dispatched to UIElement which has a RenderTransform

What is the new behavior?

We can also tap on the part of a UIElement which does not overlap it original location

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

This is only a partial fix, cf. #649

Internal Issue (If applicable):
https://nventive.visualstudio.com/Umbrella/_workitems/edit/147978
https://nventive.visualstudio.com/Umbrella/_workitems/edit/148298
https://nventive.visualstudio.com/Umbrella/_workitems/edit/148300
https://nventive.visualstudio.com/Umbrella/_workitems/edit/148303
https://nventive.visualstudio.com/Umbrella/_workitems/edit/148375
https://nventive.visualstudio.com/Umbrella/_workitems/edit/148521

@dr1rrb
dr1rrb force-pushed the dev/dr/TransEvtDispatch branch from dbf92dd to de175b3 Compare March 6, 2019 03:22
public boolean dispatchTouchEvent(MotionEvent e)
{
String originalIndent = _indent;
Log.i("", _indent + " + " + this.toString());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this costly?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah! (When dragging a Slider for instance)

// growing circles in buttons when keeping pressed (RippleEffect)).
boolean superDispatchTouchEvent = super.dispatchTouchEvent(e);
//Log.i("", _indent + "MotionEvent: " + e.toString());
//Log.i("", _indent + "_isPointInView: " + _isPointInView);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commented code!

//Log.i("", _indent + "_childBlockedTouchEvent: " + _childBlockedTouchEvent);
//Log.i("", _indent + "_childHandledTouchEvent: " + _childHandledTouchEvent);
//Log.i("", _indent + "isBlockingTouchEvent: " + isBlockingTouchEvent);
//Log.i("", _indent + "isHandlingTouchEvent: " + isHandlingTouchEvent);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commented code!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are only to ease debugging as we are in java and we don't have a valid debugger nor even a real logging system. They were present and helped me a lot, I don't see the point to remove them.

@dr1rrb
dr1rrb force-pushed the dev/dr/TransEvtDispatch branch from de175b3 to e0ef795 Compare March 6, 2019 15:38
@dr1rrb
dr1rrb merged commit 5817483 into master Mar 6, 2019
@dr1rrb
dr1rrb deleted the dev/dr/TransEvtDispatch branch March 6, 2019 17:03
MartinZikmund pushed a commit that referenced this pull request Jan 12, 2025
kazo0 pushed a commit to kazo0/uno that referenced this pull request Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants