backport of gallery mousewheel and ie fixes
Merge pull request #1259 from owncloud/stable5_gallery_mousewheel_and_ie_fixes

Stable5 gallery mousewheel and ie fixes