Skip to content

Commit

Permalink
Differentiate menu slide area width when is on portrait and landscape
Browse files Browse the repository at this point in the history
  • Loading branch information
EmiyaSyahriel committed Dec 4, 2022
1 parent 4a2c901 commit 744c236
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,8 @@ fun XmbView.menuOnTouchScreen(a:PointF, b:PointF, act:Int){
val isMenu = a.x > scaling.target.right - 200.0f
run{
if(isMenu){
if(b.x < scaling.target.right - 400.0f){
val menuTol = (width > height).select(400.0f, 100.0f)
if(b.x < scaling.target.right - menuTol){
val item = context.vsh.hoveredItem
if(item?.hasMenu == true){
state.itemMenu.isDisplayed = true
Expand Down

0 comments on commit 744c236

Please sign in to comment.