Skip to content

Commit

Permalink
Merge pull request #155 from monsterLin/develop
Browse files Browse the repository at this point in the history
fix(touch): 修复全屏状态左侧改变亮度坐标不准的问题
  • Loading branch information
lipangit authored May 27, 2020
2 parents e0068a9 + 5290fa2 commit e8fdeae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/main/java/cn/jzvd/Jzvd.java
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ protected void touchActionMove(float x, float y) {
}
} else {
//如果y轴滑动距离超过设置的处理范围,那么进行滑动事件处理
if (mDownX < mScreenWidth * 0.5f) {//左侧改变亮度
if (mDownX < mScreenHeight * 0.5f) {//左侧改变亮度
mChangeBrightness = true;
WindowManager.LayoutParams lp = JZUtils.getWindow(getContext()).getAttributes();
if (lp.screenBrightness < 0) {
Expand Down

0 comments on commit e8fdeae

Please sign in to comment.