Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
PRJ-92 Clarify which drag event is generated: touch or mouse
Browse files Browse the repository at this point in the history
  • Loading branch information
SerVB committed Jul 21, 2020
1 parent 0eeb3e9 commit b8dd756
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class InputController(private val openingTimeStamp: Int,
eventsInterceptor!!.onMouseMove(touch.clientX, touch.clientY)
}
else {
fireMouseEvent(ClientMouseEvent.MouseEventType.DRAG, event, touch)
fireMouseEvent(ClientMouseEvent.MouseEventType.TOUCH_DRAG, event, touch)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ val COMMON_VERSION = listOf(ServerEvent.serializer(), ClientEvent.serializer())
// Don't change order here: it's used to obtain readable "human id"
val commonVersionList = listOf(
-1663032476,
615706807
615706807,
891030124
)
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ data class ClientMouseEvent(
enum class MouseEventType {
MOVE,
DRAG,
TOUCH_DRAG,
DOWN,
UP,
CLICK,
Expand Down

0 comments on commit b8dd756

Please sign in to comment.