Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
fix: Click event delivery
Browse files Browse the repository at this point in the history
  • Loading branch information
painld6 committed Feb 5, 2021
1 parent a8ff86f commit 461b63c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ open class SVGAImageView @JvmOverloads constructor(context: Context, attrs: Attr
if (event?.action != MotionEvent.ACTION_DOWN) {
return super.onTouchEvent(event)
}
val drawable = getSVGADrawable() ?: return false
val drawable = getSVGADrawable() ?: return super.onTouchEvent(event)
for ((key, value) in drawable.dynamicItem.mClickMap) {
if (event.x >= value[0] && event.x <= value[2] && event.y >= value[1] && event.y <= value[3]) {
mItemClickAreaListener?.let {
Expand Down

0 comments on commit 461b63c

Please sign in to comment.