Download Latest Version 1.3.0 - Modernized for Current Browsers source code.tar.gz (106.6 kB)
Email in envelope

Get an email when there's a new version of Zynga Scroller

Home / 1.3
Name Modified Size InfoDownloads / Week
Parent folder
scroller.umd.js 2025-07-16 45.4 kB
scroller.cjs.js 2025-07-16 51.1 kB
scroller.esm.js 2025-07-16 51.0 kB
scroller.min.js 2025-07-16 12.7 kB
scroller-full.min.js 2025-07-16 16.8 kB
scroller-full.umd.js 2025-07-16 52.8 kB
1.3.0 - Modernized for Current Browsers source code.tar.gz 2025-07-16 106.6 kB
1.3.0 - Modernized for Current Browsers source code.zip 2025-07-16 122.8 kB
README.md 2025-07-16 3.1 kB
Totals: 9 Items   462.3 kB 1

🚀 Scroller v1.3.0 - Major Modernization Release

This release represents a comprehensive modernization of Scroller, bringing it up to current web standards while maintaining full backward compatibility for the public API.

đź”§ Build System & Development Tools

  • Modern build pipeline with Vite and Rollup for better development experience
  • Comprehensive test suite with Jest testing framework covering all core functionality
  • Enhanced demos with improved examples and better documentation
  • Development documentation added with contribution guidelines
  • Updated package.json with modern dependencies and scripts

⚡ Legacy Code Removal & Modernization

  • Simplified requestAnimationFrame - Removed complex polyfills and vendor prefix detection (~70 lines of legacy code removed)
  • Modern CSS transforms - Eliminated browser engine detection, now uses standard transform and transformOrigin properties
  • Updated scroll APIs - Removed fallbacks for pageXOffset/pageYOffset as they're universally supported
  • Modern data attributes - Replaced element.attributes.getNamedItem() with modern dataset API
  • Standard wheel events - Replaced legacy mousewheel event with standard wheel event and proper deltaY handling
  • Cleaner event listeners - Removed unnecessary false parameters from addEventListener calls
  • Simplified Date.now() usage - Removed unnecessary fallback code

🏠 Repository & Documentation Updates

  • Updated repository references from github.com/zynga/scroller to github.com/pbakaus/scroller
  • Fixed demo links and build messages to reflect new repository location
  • Updated license headers across all source files
  • Improved build output with clearer console messages

📦 Technical Improvements

  • Reduced bundle size by removing 100+ lines of unnecessary polyfill code
  • Improved performance by eliminating function call overhead from wrapper functions
  • Enhanced code clarity using modern browser APIs directly
  • Better maintainability with simplified, standards-based implementations
  • Full ES module support with proper build pipeline

đź§Ş Testing & Quality

  • Complete test coverage for all core components (Scroller, EasyScroller, Animate)
  • Cross-browser testing setup for modern browsers
  • Automated testing with npm scripts
  • All existing functionality preserved - no breaking changes to public API

📊 Files Changed

  • 22 files modified across source, tests, demos, and documentation
  • Net reduction of ~127 lines despite adding comprehensive tests
  • Enhanced demos and examples for better developer experience

🔄 Migration Notes

No migration required! This release maintains full backward compatibility while modernizing the underlying implementation for better performance and maintainability in modern browsers.


Full Changelog: https://github.com/pbakaus/scroller/compare/db551ce...v1.1.0

Source: README.md, updated 2025-07-16