Commit 29a6c1e1 authored by Felix Paul Kühne's avatar Felix Paul Kühne

vout_ios2: fix touch event propagation on retina displays

parent 3ff38b86
......@@ -511,8 +511,9 @@ static void OpenglESSwap(vlc_gl_t *gl)
UIGestureRecognizerState state = [tapRecognizer state];
CGPoint touchPoint = [tapRecognizer locationInView:self];
CGFloat scaleFactor = self.contentScaleFactor;
vout_display_SendMouseMovedDisplayCoordinates(_voutDisplay, ORIENT_NORMAL,
(int)touchPoint.x, (int)touchPoint.y,
(int)touchPoint.x * scaleFactor, (int)touchPoint.y * scaleFactor,
vout_display_SendEventMousePressed(_voutDisplay, MOUSE_BUTTON_LEFT);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment