mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
fix app launcher mouse hit detection
This commit is contained in:
parent
74d0790ab3
commit
cac4e1f9a7
1 changed files with 5 additions and 1 deletions
|
@ -229,8 +229,12 @@ namespace ShiftOS.Frontend.Desktop
|
|||
|
||||
|
||||
var al_left = LoadedSkin.AppLauncherFromLeft;
|
||||
|
||||
int al_top = (LoadedSkin.DesktopPanelPosition == 0) ? 0 : Height - LoadedSkin.DesktopPanelHeight;
|
||||
|
||||
|
||||
var al_size = LoadedSkin.AppLauncherHolderSize;
|
||||
if(MouseX >= al_left.X && MouseY >= al_left.Y && MouseX <= al_left.X + al_size.Width && MouseY <= al_left.Y + al_size.Height)
|
||||
if(MouseX >= al_left.X && MouseY >= al_left.Y + al_top && MouseX <= al_left.X + al_size.Width && MouseY <= al_left.Y + al_top + al_size.Height)
|
||||
{
|
||||
if(alOpen == false && MouseLeftDown == true)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue