1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fixed slider's behavior, especially for mobile systems

This commit is contained in:
Ivan Savenko
2023-06-22 23:49:38 +03:00
parent 7c5dcfd47b
commit a505cc464e
12 changed files with 44 additions and 15 deletions

View File

@@ -109,6 +109,11 @@ public:
return Rect(x+p.x,y+p.y,w,h);
}
Rect operator-(const Point &p) const
{
return Rect(x-p.x,y-p.y,w,h);
}
Rect& operator=(const Rect &p)
{
x = p.x;