mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-02-22 18:02:47 +01:00
add <afx-slider>
This commit is contained in:
parent
519209af0c
commit
1b4f117060
@ -59,8 +59,6 @@
|
|||||||
var maxw = $(self.refs.container).width();
|
var maxw = $(self.refs.container).width();
|
||||||
left = left > maxw?maxw : left
|
left = left > maxw?maxw : left
|
||||||
self.value = left*self.max/maxw
|
self.value = left*self.max/maxw
|
||||||
//left = left - $(self.refs.point).width()/2
|
|
||||||
//$(self.refs.point).css("left",left + "px")
|
|
||||||
calibrate()
|
calibrate()
|
||||||
if(self.onchange) self.onchange(self.value)
|
if(self.onchange) self.onchange(self.value)
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user