Bug 1008172 - Scrolling when focused on the tabbox should not change the selected tab for the in-content preferences. r=Gijs

This commit is contained in:
Jared Wein 2014-12-12 14:15:13 -05:00
Родитель 6cd223b667
Коммит bff21aff10
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -79,6 +79,15 @@ var gAdvancedPane = {
gAdvancedPane.showCertificates);
setEventListener("viewSecurityDevicesButton", "command",
gAdvancedPane.showSecurityDevices);
#ifdef MOZ_WIDGET_GTK
// GTK tabbox' allow the scroll wheel to change the selected tab,
// but we don't want this behavior for the in-content preferences.
let tabsElement = document.getElementById("tabsElement");
tabsElement.addEventListener("DOMMouseScroll", event => {
event.stopPropagation();
}, true);
#endif
},
/**