mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-13 10:32:11 +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:
parent
7c329b1281
commit
1881a800bf
|
@ -169,7 +169,7 @@ bool AutoScroller::showIndicator(WebView* view, const QPoint &pos)
|
||||||
{
|
{
|
||||||
const WebHitTestResult res = view->page()->hitTestContent(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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user