Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
fix(rrweb): clean up pointer tap circles when seeking by breadcrumb #209
fix(rrweb): clean up pointer tap circles when seeking by breadcrumb #209
Changes from all commits
6601e41
55157db
29e5a89
1e42bdb
51ba3f3
10a3354
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 939 in packages/rrweb/src/replay/index.ts
packages/rrweb/src/replay/index.ts#L939
Check warning on line 958 in packages/rrweb/src/replay/index.ts
packages/rrweb/src/replay/index.ts#L958
Check warning on line 965 in packages/rrweb/src/replay/index.ts
packages/rrweb/src/replay/index.ts#L965
Check warning on line 1052 in packages/rrweb/src/replay/index.ts
packages/rrweb/src/replay/index.ts#L1052
Check warning on line 1087 in packages/rrweb/src/replay/index.ts
packages/rrweb/src/replay/index.ts#L1087
Check warning on line 1088 in packages/rrweb/src/replay/index.ts
packages/rrweb/src/replay/index.ts#L1088
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the
!p.touchActive
ensures that this works for multitouch when seeking - all taps should show upThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm since the condition is
!p.touchActive
, wouldn't this meantouchActive
is already false?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if
p.touchActive === true
(this can be true for various pointers at the same time in the case of multitouch) then we don't want to settouchActive = false
. otherwise we'd remove the pointer erroneously for multitouch. buttouchActive
can also benull
for the pointers that aren't active, so those are the cases we want to settouchAcitve = false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we clarify this in a code comment? (and also what it means for it to be
null
vsfalse
)Check warning on line 1463 in packages/rrweb/src/replay/index.ts
packages/rrweb/src/replay/index.ts#L1463
Check warning on line 1580 in packages/rrweb/src/replay/index.ts
packages/rrweb/src/replay/index.ts#L1580