Can I use the ITouchLongPressGestureEventListener and IPropagatedTouchEventListener at the same time?
Can I use the ITouchLongPressGestureEventListener and IPropagatedTouchEventListener at the same time?
BY 08 Dec 2014Native Application Development
Hi i`m develope Tizen app.
when i use touch event ITouchLongPressGestureEventListener and IPropagatedTouchEventListener on panel.
LongPressGesture didn`t work
Ex:
Tizen::Ui::Controls::Panel* pPanel = Tizen::Ui::Controls::Panel;
pPanel->Construct(myLayout, this->GetBounds());
//Panel initialize;
Tizen::Ui::TouchLongPressGestureDetector* pLongtouchEvent =
new Tizen::Ui::TouchLongPressGestureDetector;
if(pLongtouchEvent){
pLongtouchEvent->Construct();
pPanel->AddGestureDetector(pLongtouchEvent);
pLongtouchEvent->AddLongPressGestureEventListner(*this);
}
//add longtouch eventListener on panel
this->SetPropagatedTouchEventListener(this);
//add progated touch event on frame
this->AddControl(*pPanel);
//add panel on default frame..
that was simple my code..
previewtouch event of progatedtouchevent called because panel added on frame.
but. prieview touch and longtouch event cann`t called same time.
(sure if i add progated touch event on panel longtouch and progated touch event perform sametime. because bool ontouchpressed() and bool ontouchmoved()
called (previewtouch only called upper component exist but panel upper component didn`t exist))
how can i use OnPreviewTouch function and Longtouch function at the same time?
Can I use the ITouchLongPressGestureEventListener and IPropagatedTouchEventListener at the same time?
Hi i`m develope Tizen app.
when i use touch event ITouchLongPressGestureEventListener and IPropagatedTouchEventListener on panel.
LongPressGesture didn`t work
Ex:
that was simple my code..
previewtouch event of progatedtouchevent called because panel added on frame.
but. prieview touch and longtouch event cann`t called same time.
(sure if i add progated touch event on panel longtouch and progated touch event perform sametime. because bool ontouchpressed() and bool ontouchmoved()
called (previewtouch only called upper component exist but panel upper component didn`t exist))
how can i use OnPreviewTouch function and Longtouch function at the same time?
sorry about my awkword english
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio