Skip to content

Add support for touch events on the suggest widget (Fixes #78984)#81442

Merged
octref merged 5 commits intomicrosoft:masterfrom
davidreis97:78984
Sep 26, 2019
Merged

Add support for touch events on the suggest widget (Fixes #78984)#81442
octref merged 5 commits intomicrosoft:masterfrom
davidreis97:78984

Conversation

@davidreis97
Copy link
Contributor

@davidreis97 davidreis97 commented Sep 25, 2019

Fixes #78984

Works by implementing a onListTap event listener for a tap GestureEvent on the SuggestWidget class. The new listener runs the same code as the onListMouseDown event listener.

If you think it's best to extract the onListTap() and onListMouseDown() functions in order to avoid duplicated code please let me know, I didn't do it right away since it's just a couple lines of code.

Copy link
Contributor

@octref octref left a comment

Choose a reason for hiding this comment

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

Changes LGTM and works great 👍

Let's not duplicate code and name the function onListMouseDownOrTap.

@octref octref added this to the September 2019 milestone Sep 26, 2019
@davidreis97
Copy link
Contributor Author

Thanks for the feedback, refactored as suggested, using a union type of IListMouseEvent and IListGestureEvent as the type of the argument of the new function.

@octref octref merged commit effbd9b into microsoft:master Sep 26, 2019
@octref
Copy link
Contributor

octref commented Sep 26, 2019

🚢 it. Thanks for the contribution!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Touch doesn't work in Suggest widget

2 participants