fix app launcher mouse hit detection

This commit is contained in:
Michael 2017-07-26 10:06:50 -04:00
parent 74d0790ab3
commit cac4e1f9a7

View file

@ -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)
{