I'm using the options inherit_width_from and inherit_height_from for my slides. Whenever the window size is changed, superslides updates the css attributes size and left of the slides. So far, so good.
However, after that the function superslides.css.containers is being called and updates the width of superslides.$control by superslides.width multiplied by multiplier (in my case 3). The problem is, this increases the size of the slides as well. So, for each resize eventthat._findWidth will return the increased size which will then be multiplied by 3 again. Obviously, this is not intended behaviour.
I'd fix the problem and submit a pull request, but before that I need to know what the purpose of the multiplier variable is.
I'm using the options
inherit_width_from
andinherit_height_from
for my slides. Whenever the window size is changed, superslides updates the css attributessize
andleft
of the slides. So far, so good.However, after that the function
superslides.css.containers
is being called and updates the width ofsuperslides.$control
bysuperslides.width
multiplied bymultiplier
(in my case3
). The problem is, this increases the size of the slides as well. So, for each resize eventthat._findWidth
will return the increased size which will then be multiplied by3
again. Obviously, this is not intended behaviour.I'd fix the problem and submit a pull request, but before that I need to know what the purpose of the multiplier variable is.