better handling for ipads. fixes #1949