summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/input/touchscreen/fts_ts.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/fts_ts.c b/drivers/input/touchscreen/fts_ts.c
index b843a150ae85..6753b8930baf 100644
--- a/drivers/input/touchscreen/fts_ts.c
+++ b/drivers/input/touchscreen/fts_ts.c
@@ -339,7 +339,10 @@ static unsigned char fts_event_handler_type_b(struct fts_ts_info *info,
} else if (event_id == EVENTID_MOTION_POINTER)
info->finger[touch_id].mcount++;
- info->finger[touch_id].state = event_id;
+ if ((event_id == EVENTID_ENTER_POINTER) ||
+ (event_id == EVENTID_LEAVE_POINTER) ||
+ (event_id == EVENTID_MOTION_POINTER))
+ info->finger[touch_id].state = event_id;
}
input_sync(info->input_dev);