summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NxWidgets/nxwm/src/ctouchscreen.cxx2
-rw-r--r--nuttx/drivers/input/mxt.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/NxWidgets/nxwm/src/ctouchscreen.cxx b/NxWidgets/nxwm/src/ctouchscreen.cxx
index 0a1bea71f..68fec4e5b 100644
--- a/NxWidgets/nxwm/src/ctouchscreen.cxx
+++ b/NxWidgets/nxwm/src/ctouchscreen.cxx
@@ -591,5 +591,3 @@ void CTouchscreen::handleMouseInput(struct touch_sample_s *sample)
(void)nx_mousein(handle, x, y, buttons);
}
-
-
diff --git a/nuttx/drivers/input/mxt.c b/nuttx/drivers/input/mxt.c
index f8937d70c..ec97f0864 100644
--- a/nuttx/drivers/input/mxt.c
+++ b/nuttx/drivers/input/mxt.c
@@ -892,7 +892,7 @@ static void mxt_touch_event(FAR struct mxt_dev_s *priv,
/* Check the thresholds */
- if (xdiff < CONFIG_MXT_THRESHX && ydiff < CONFIG_MXT_THRESHY)
+ if (xdiff >= CONFIG_MXT_THRESHX || ydiff >= CONFIG_MXT_THRESHY)
{
/* Report a contact move event. This state will be set back
* to CONTACT_REPORT after it been reported.