Slider polyfill: Standardized event handling to address Android issues (fixes #5300)