Skip to content

Commit 400fcd2

Browse files
bod1kaValentinH
authored andcommitted
Added prefix for webkit browsers
1 parent f9dc275 commit 400fcd2

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

dist/rzslider.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*! angularjs-slider - v6.1.0 -
22
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
33
https://github.com/angular-slider/angularjs-slider -
4-
2017-03-27 */
4+
2017-03-29 */
55
/*jslint unparam: true */
66
/*global angular: false, console: false, define, module */
77
(function(root, factory) {
@@ -987,11 +987,15 @@
987987
if (self.options.vertical)
988988
position = self.maxPos - position;
989989

990+
var translation = translate + '(' + Math.round(position) + 'px)';
990991
var tick = {
991992
selected: self.isTickSelected(value),
992993
style: {
993-
'-webkit-transform': translate + '(' + Math.round(position) + 'px)',
994-
'transform': translate + '(' + Math.round(position) + 'px)'
994+
'-webkit-transform': translation,
995+
'-moz-transform': translation,
996+
'-o-transform': translation,
997+
'-ms-transform': translation,
998+
'transform': translation
995999
}
9961000
};
9971001
if (tick.selected && self.options.getSelectionBarColor) {

0 commit comments

Comments
 (0)