1
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:
nowrep 2012-11-28 09:43:47 +01:00
parent 999f499288
commit 0a2dbc83a0

View File

@ -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())
exceptions << "google." << "twitter.";
// Disable touch mocking on pages known not to work properly
const QString &host = url.host();
m_disableTouchMocking = false;
foreach (const QString &site, exceptions) {
if (host.contains(site)) {
m_disableTouchMocking = true; m_disableTouchMocking = true;
} }
else {
m_disableTouchMocking = false;
} }
} }