Skip to content

Commit

Permalink
set touch_delta to zero when touch begins
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmaclarty committed Aug 28, 2016
1 parent 1c3bbcb commit 3ce942f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ function am._touch_begin(win, id, x, y, nx, ny, px, py, force)
touch.norm_position_y = ny
touch.pixel_position_x = px
touch.pixel_position_y = py
touch.prev_position_x = touch.position_x
touch.prev_position_y = touch.position_y
touch.prev_norm_position_x = touch.norm_position_x
touch.prev_norm_position_y = touch.norm_position_y
touch.prev_pixel_position_x = touch.pixel_position_x
touch.prev_pixel_position_y = touch.pixel_position_y
touch.force = force
touch.began = true
end
Expand Down

0 comments on commit 3ce942f

Please sign in to comment.