From 1e7bf8de3b3bc4ac1d65d8b101d7ccedab24fcad Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 18 Apr 2013 22:29:50 +0300 Subject: Add pan gesture handling I get exactly the same kind of artefacts as in the Android app, which I guess is good as it is at least consistent, as the implementation at the LO layer is identical... Change-Id: Icf0690fd2c48a133cb66de2ab7977b7088d2199e --- vcl/ios/iosinst.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'vcl/ios/iosinst.cxx') diff --git a/vcl/ios/iosinst.cxx b/vcl/ios/iosinst.cxx index 39410fcb7fb8..7ba2656f7359 100644 --- a/vcl/ios/iosinst.cxx +++ b/vcl/ios/iosinst.cxx @@ -402,6 +402,17 @@ void lo_tap(int x, int y) } } +extern "C" +void lo_pan(int x, int y) +{ + SalFrame *pFocus = IosSalInstance::getInstance()->getFocusFrame(); + if (pFocus) { + SAL_INFO( "vcl.ios", "scroll: " << "(" << x << "," << y << ")" ); + ScrollEvent aEvent( x, y ); + Application::PostScrollEvent(VCLEVENT_WINDOW_SCROLL, pFocus->GetWindow(), &aEvent); + } +} + extern "C" void lo_keyboard_input(int c) { -- cgit