mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +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)
|
||||
{
|
||||
// Disable touch mocking on all google pages as it just makes it buggy
|
||||
if (url.host().contains(QLatin1String("google"))) {
|
||||
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;
|
||||
}
|
||||
else {
|
||||
m_disableTouchMocking = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user