mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Fixed dropdowns on Twitter instant hiding
- added twitter into exceptions for touch mocking Closes #634
This commit is contained in:
parent
999f499288
commit
0a2dbc83a0
@ -379,12 +379,18 @@ void WebView::slotIconChanged()
|
|||||||
|
|
||||||
void WebView::slotUrlChanged(const QUrl &url)
|
void WebView::slotUrlChanged(const QUrl &url)
|
||||||
{
|
{
|
||||||
// Disable touch mocking on all google pages as it just makes it buggy
|
static QStringList exceptions;
|
||||||
if (url.host().contains(QLatin1String("google"))) {
|
if (exceptions.isEmpty())
|
||||||
m_disableTouchMocking = true;
|
exceptions << "google." << "twitter.";
|
||||||
}
|
|
||||||
else {
|
// Disable touch mocking on pages known not to work properly
|
||||||
m_disableTouchMocking = false;
|
const QString &host = url.host();
|
||||||
|
m_disableTouchMocking = false;
|
||||||
|
|
||||||
|
foreach (const QString &site, exceptions) {
|
||||||
|
if (host.contains(site)) {
|
||||||
|
m_disableTouchMocking = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user