| 45 | |
| 46 | |
| 47 | void SvgButton::onDragStart(const DragStartEvent& e) { |
| 48 | if (e.button != GLFW_MOUSE_BUTTON_LEFT) |
| 49 | return; |
| 50 | |
| 51 | if (frames.size() >= 2) { |
| 52 | sw->setSvg(frames[1]); |
| 53 | fb->setDirty(); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | |
| 58 | void SvgButton::onDragEnd(const DragEndEvent& e) { |