1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +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)
{
// Disable touch mocking on all google pages as it just makes it buggy
if (url.host().contains(QLatin1String("google"))) {
m_disableTouchMocking = true;
}
else {
m_disableTouchMocking = false;
static QStringList exceptions;
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;
}
}
}