Releases: dkazmer/Slydr
Complete overhaul
Derived from the henceforth deprecated sGlide, which was completely overhauled and subsequently rebranded. This will not support legacy browsers, nor will it have a jQuery counterpart. This iteration is far simpler than its predecessor, while suffering no feature loss. For more, see home page.
Improvements Galore
chainable (showKnob to favour newly added noHandle • removed onload callback to favour ready event ($) or load method (standalone) • restored 'custom' property to output on ready • added Ctrl key option • added 2 more snap points (up to 11) • rebuilt snap marks • more accurate snapping • other minor snap improvements & bug fixes • removed CustomEvent polyfill • all callbacks now receive sGlide context (this) • removed internal custom element getter to favour querySelectorAll • better 'css' & 'extend' functions • refactoring and general bug fixes
Snap Sensitivity
Added snap sensitivity (snap.sensitivity) - accepts decimal values between 1 & 3 inclusive. And other generic improvements.
Input Highlighting in Chrome
Bug fix: text inputs were not selectable by mouse-drag in Chrome for jQuery — a proper if statement in the document's mousemove event listener solved it, thereby possibly increasing performance. Applied to both jQuery and standalone.
Bug fixes
Focus on intuitiveness, efficiency and IE
Removed snap properties hard & onlyOnDrop in favour of snap.type; also snap.markers became snap.marks; added totalRange property & runtime values thereof returned; destroy method now chainable for jQuery; fixed minor scoping issue; modified colorShift handling; significant changes with regards to data entered and data received; replaced setInterval with event listener (+ IE polyfill); removed drag and drop callbacks from initiator function; added slider data to onload callback; jQuery: removed unnecessary removeEventListeners for IE that caused an error on destroy.
Major Release - version 2!
New standalone (jquery independent) plugin; major improvements in code structure, stability, accuracy; changed color shift property (see usage); only corresponding arrow keys for horizontal or vertical; added Windows Phone support; added retina image handling; fixed issues in destroy methods; added shift + arrow keys control; and made various bug fixes, namely functional inconsistencies.
Keyboard Arrows
Added keyboard arrow controls. To enable this, give your main shell the following attribute: data-keys="true".
Buttons (-/+) bug fix
Important bug fix: when button is pressed but released off button, button action now gets cleared!
Buttons (-/+)
Added −/+ buttons option, along with the onButton and onload callbacks. Minor bug fixes as well. You can use onload to change the HTML content of the buttons once they've been drawn. Style them as necessary. Clicking one of the buttons will advance the slider 10%. Click & hold to advance continuously. When hard or onlyOnDrop snapping is enabled, the slider will advance to the snap points.