Fix layers control on firefox android

Cludgy fix for #2033