mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-05 21:57:20 +00:00
Add support to resize the pinned popup frames.
This commit is contained in:
parent
0bcb44c491
commit
536d67566f
@ -82,6 +82,13 @@ void PopupFramePin::onHitTest(HitTestEvent& ev)
|
|||||||
{
|
{
|
||||||
PopupFrame::onHitTest(ev);
|
PopupFrame::onHitTest(ev);
|
||||||
|
|
||||||
if (m_pin.isSelected() && ev.getHit() == HitTestClient)
|
if (m_pin.isSelected() &&
|
||||||
ev.setHit(HitTestCaption);
|
ev.getHit() == HitTestClient) {
|
||||||
|
if (ev.getPoint().x <= rc->x1+2)
|
||||||
|
ev.setHit(HitTestBorderW);
|
||||||
|
else if (ev.getPoint().x >= rc->x2-3)
|
||||||
|
ev.setHit(HitTestBorderE);
|
||||||
|
else
|
||||||
|
ev.setHit(HitTestCaption);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user