RUM-721 treat scroll on non scrollable view as tap#1622
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1622 +/- ##
===========================================
- Coverage 83.57% 83.52% -0.05%
===========================================
Files 452 452
Lines 15652 15661 +9
Branches 2324 2326 +2
===========================================
- Hits 13081 13080 -1
- Misses 1950 1955 +5
- Partials 621 626 +5
|
3dd49a3 to
1a96e81
Compare
1a96e81 to
ed67bed
Compare
| result += File(androidJarFilePath.joinToString(File.separator)) | ||
| } | ||
|
|
||
| val envSdkHome = System.getenv("ANDROID_SDK_ROOT") |
There was a problem hiding this comment.
This ensures that in CI (where no local.properties file exists) we still include the android.jar for type resolution.
| return ScrollingView::class.java.isAssignableFrom(view.javaClass) || | ||
| AbsListView::class.java.isAssignableFrom(view.javaClass) | ||
| AbsListView::class.java.isAssignableFrom(view.javaClass) || | ||
| ScrollView::class.java.isAssignableFrom(view.javaClass) |
There was a problem hiding this comment.
This one was missing from our supported Views
0xnm
left a comment
There was a problem hiding this comment.
lgtm! I've added few suggestions.
| val downTarget = findTargetForTap(decorView, onTouchDownXPos, onTouchDownYPos) | ||
| val upTarget = findTargetForTap(decorView, onUpEvent.x, onUpEvent.y) | ||
|
|
||
| if (downTarget == upTarget && downTarget != null) { |
There was a problem hiding this comment.
I would suggest to use === operator here to highlight that we want exactly same instance by reference (because who knows, maybe it will be some View which redefines equals).
| GesturesListener.SCROLL_DIRECTION_RIGHT | ||
| ] | ||
| ) | ||
| fun `M send a tap rum event if target is a non scrollabld`( |
There was a problem hiding this comment.
typo here, should be scrollable (I don't have suggestion button available, because reviewing individual commit)
f3c6383
|
This fixes #1389 |
What does this PR do?
A brief description of the change being made with this pull request.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)