mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
GUI: Switched URL clicking in the Richtext widget to mouse up
This commit is contained in:
parent
0644ad9e9a
commit
7ff167190b
@ -85,7 +85,7 @@ void RichTextWidget::handleMouseWheel(int x, int y, int direction) {
|
||||
_verticalScroll->handleMouseWheel(x, y, direction);
|
||||
}
|
||||
|
||||
void RichTextWidget::handleMouseDown(int x, int y, int button, int clickCount) {
|
||||
void RichTextWidget::handleMouseUp(int x, int y, int button, int clickCount) {
|
||||
Common::String link = _txtWnd->getMouseLink(x + _x + _scrolledX, y + _y + _scrolledY).encode();
|
||||
|
||||
if (link.hasPrefixIgnoreCase("http"))
|
||||
|
@ -61,7 +61,7 @@ public:
|
||||
|
||||
void handleCommand(CommandSender *sender, uint32 cmd, uint32 data) override;
|
||||
void handleMouseWheel(int x, int y, int direction) override;
|
||||
void handleMouseDown(int x, int y, int button, int clickCount) override;
|
||||
void handleMouseUp(int x, int y, int button, int clickCount) override;
|
||||
void handleTooltipUpdate(int x, int y) override;
|
||||
|
||||
void markAsDirty() override;
|
||||
|
Loading…
Reference in New Issue
Block a user