GUI: Switched URL clicking in the Richtext widget to mouse up

This commit is contained in:
Eugene Sandulenko 2023-11-02 22:21:55 +01:00
parent 0644ad9e9a
commit 7ff167190b
No known key found for this signature in database
GPG Key ID: 014D387312D34F08
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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;