1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

AutoScroll: Disable on frames

It doesn't support scrolling outside main frame, so just disable
it on frames so middle clicking links is possible.
This commit is contained in:
David Rosca 2016-12-26 13:13:22 +01:00
parent 7c329b1281
commit 1881a800bf

View File

@ -169,7 +169,7 @@ bool AutoScroller::showIndicator(WebView* view, const QPoint &pos)
{
const WebHitTestResult res = view->page()->hitTestContent(pos);
if (res.isContentEditable() || !res.linkUrl().isEmpty()) {
if (res.isContentEditable() || !res.linkUrl().isEmpty() || res.tagName().endsWith(QL1S("frame"))) {
return false;
}