From c24618ad97b146c52d69418f64fbc3f1e8050bbc Mon Sep 17 00:00:00 2001 From: idea4good Date: Fri, 24 May 2019 16:24:59 +0800 Subject: [PATCH] fix slide page touch issue --- widgets/slide_group.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/widgets/slide_group.cpp b/widgets/slide_group.cpp index 5c1385b..7700f38 100644 --- a/widgets/slide_group.cpp +++ b/widgets/slide_group.cpp @@ -155,6 +155,8 @@ void c_slide_group::disabel_all_slide() bool c_slide_group::on_touch(int x, int y, TOUCH_ACTION action) { + x -= m_wnd_rect.m_left; + y -= m_wnd_rect.m_top; if (m_slides[m_active_slide_index]) { m_slides[m_active_slide_index]->on_touch(x, y, action);