Skip to content

feat(web): start of the GestureRecognizer class, use of event-based paradigm 🐵#6843

Merged
jahorton merged 12 commits intofeat/web/gesture-recognizer-mainfrom
feat/web/gesture-recognizer-base
Jul 14, 2022
Merged

feat(web): start of the GestureRecognizer class, use of event-based paradigm 🐵#6843
jahorton merged 12 commits intofeat/web/gesture-recognizer-mainfrom
feat/web/gesture-recognizer-base

Conversation

@jahorton
Copy link
Copy Markdown
Contributor

@jahorton jahorton commented Jun 24, 2022

Rather than require constant reference to two separate event engines... why not provide a way for them to be integrated into a single class? Of course, for readability's sake... there's no need to actually fuse them. Also, I think it'll be quite helpful to keep mouse-handling state variables separate from touch-handling state variables... as more such variables will likely be added in the future. (Especially once we start aiming to handle multi-touch!)

Rather than have a rather messy callback-configuration setup for the classes, this also retools the input-receiving engines to use an event-based paradigm; this provides a simple event interface that code can attach a listener to for updates. It's a cleaner interface and will better fit the needs of the future GestureSegmenter component of the module.

@keymanapp-test-bot skip

@jahorton jahorton added this to the A16S5 milestone Jun 24, 2022
@keymanapp-test-bot keymanapp-test-bot bot added the user-test-missing User tests have not yet been defined for the PR label Jun 24, 2022
@keymanapp-test-bot
Copy link
Copy Markdown

keymanapp-test-bot bot commented Jun 24, 2022

@jahorton jahorton changed the title feat(web): start of the GestureRecognizer class, use of event-based paradigm feat(web): start of the GestureRecognizer class, use of event-based paradigm 🐵 Jun 24, 2022
@keymanapp-test-bot keymanapp-test-bot bot removed the user-test-missing User tests have not yet been defined for the PR label Jun 24, 2022
@jahorton jahorton force-pushed the feat/web/gesture-recognizer-main branch from 4ddfbdf to e03e5ab Compare June 27, 2022 04:46
@jahorton jahorton force-pushed the feat/web/gesture-recognizer-base branch from 1d3ff60 to 6b42436 Compare June 27, 2022 04:47
@mcdurdin mcdurdin modified the milestones: A16S5, A16S6 Jul 9, 2022
@jahorton jahorton marked this pull request as ready for review July 11, 2022 08:35
@jahorton
Copy link
Copy Markdown
Contributor Author

Whoops! Made changes intended for the base branch on this one instead. I'm fixing that up now.

@jahorton jahorton marked this pull request as ready for review July 12, 2022 05:12
@jahorton
Copy link
Copy Markdown
Contributor Author

Okay, git was able to resolve things without much issue. Commit history will look a bit messy, but it's better than attempting a full-on rebase at this point.

@jahorton
Copy link
Copy Markdown
Contributor Author

Don't be concerned about those failed builds; I nuked them on the CI server since:

  1. It's a bit overloaded at the moment
  2. There was a failure anyway that'll be addressed with a new, upcoming push to the branch... which'll trigger a rebuild.

Copy link
Copy Markdown
Member

@mcdurdin mcdurdin left a comment

Choose a reason for hiding this comment

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

Looks pretty clean overall. A few nits only.

@jahorton
Copy link
Copy Markdown
Contributor Author

jahorton commented Jul 13, 2022

You've got this here and in gestureRecognizer.ts.

Note to self: make sure you eliminated both.

I think I only moved the one annotated in the source comment and not the other.

Done.

@jahorton jahorton merged commit e558097 into feat/web/gesture-recognizer-main Jul 14, 2022
@jahorton jahorton deleted the feat/web/gesture-recognizer-base branch July 14, 2022 08:30
@jahorton jahorton mentioned this pull request Sep 19, 2022
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants