mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
fully fixed the mostly fixed drag...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
448099d9e7
commit
4effe393fc
@ -2120,7 +2120,7 @@ var ControlActions = actions.Actions({
|
|||||||
|
|
||||||
var rl = r.offset().left
|
var rl = r.offset().left
|
||||||
var cl = central && central.offset().left
|
var cl = central && central.offset().left
|
||||||
var w = central && central.width()
|
var w = central && central.outerWidth(true)
|
||||||
var W = that.ribbons.viewer.width()
|
var W = that.ribbons.viewer.width()
|
||||||
|
|
||||||
// check if central if off screen, if yes,
|
// check if central if off screen, if yes,
|
||||||
@ -2141,12 +2141,10 @@ var ControlActions = actions.Actions({
|
|||||||
})
|
})
|
||||||
|
|
||||||
// partly out the right -- show first image...
|
// partly out the right -- show first image...
|
||||||
} else if(cl + (w*s) > W){
|
} else if(cl + w > W){
|
||||||
r.transform({
|
r.transform({
|
||||||
//x: r.transform('x') + (W - (cl + w*s)) / s
|
|
||||||
// XXX use vmin...
|
|
||||||
x: (parseFloat((r.transform('translate3d') || [0])[0])
|
x: (parseFloat((r.transform('translate3d') || [0])[0])
|
||||||
+ (((W - (cl + w*s)) / s) / vmin * 100)) + 'vmin'
|
+ (((W - (cl + w)) / s) / vmin * 100)) + 'vmin'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user