Commit d49ba4b8 authored by Geoffrey Métais's avatar Geoffrey Métais

Filter small move touches on video

parent 217f4276
...@@ -1804,6 +1804,8 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay ...@@ -1804,6 +1804,8 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
// No volume/brightness action if coef < 2 or a secondary display is connected // No volume/brightness action if coef < 2 or a secondary display is connected
//TODO : Volume action when a secondary display is connected //TODO : Volume action when a secondary display is connected
if (mTouchAction != TOUCH_SEEK && coef > 2 && mPresentation == null) { if (mTouchAction != TOUCH_SEEK && coef > 2 && mPresentation == null) {
if (Math.abs(y_changed/mSurfaceYDisplayRange) < 0.05)
return false;
mTouchY = event.getRawY(); mTouchY = event.getRawY();
mTouchX = event.getRawX(); mTouchX = event.getRawX();
// Volume (Up or Down - Right side) // Volume (Up or Down - Right side)
......
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