Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[multitouch] Produce separate events for every pressed or removed touch point #143

Merged
merged 4 commits into from Jul 28, 2015

Conversation

rojkov
Copy link
Collaborator

@rojkov rojkov commented Jul 24, 2015

Also emit touchend event before touchmove when handling Qt's touchEvent.

This makes the test suite http://w3c-test.org/touch-events/ pass all
cases and improves pinching at m.here.com.

…ch point

Also emit touchend event before touchmove when handling Qt's touchEvent.
This makes the test suite http://w3c-test.org/touch-events/ pass all
cases.

// Produce separate event for every pressed touch points
Q_FOREACH (int id, pressedIds) {
MultiTouchInput meventStart(MultiTouchInput::MULTITOUCH_START, timeStamp, TimeStamp(), 0);
Copy link
Contributor

Choose a reason for hiding this comment

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

While the meventStart existed previously I'd take a change now and add commit on top for renaming it.

Maybe something like multiTouchInputStart instead of meventStart to improve code readability.

Similarly for meventEnd and meventMove

@rojkov
Copy link
Collaborator Author

rojkov commented Jul 27, 2015

Renamed MultiTouchInput variables and exploited std::less.

Also added commit to stop processing an event if it's a touch cancel event.

@tworaz
Copy link
Contributor

tworaz commented Jul 27, 2015

Generally LGTM. Kind of reminds me of what QtWebEngine is doing for touch events.

@rainemak
Copy link
Contributor

LGTM!

tmeshkova added a commit that referenced this pull request Jul 28, 2015
[multitouch] Produce separate events for every pressed or removed touch point
@tmeshkova tmeshkova merged commit 1b3aa61 into tmeshkova:master Jul 28, 2015
@rojkov rojkov deleted the jb21885 branch July 28, 2015 09:30
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.

None yet

4 participants