Conflicts:
	builds/appchan-x.user.js
	builds/crx/script.js
	src/General/Config.coffee
	src/Images/Gallery.coffee
This commit is contained in:
Zixaphir 2014-07-17 19:19:48 -07:00 committed by ccd0
parent 05ffeb048a
commit 0912bfb98d
2 changed files with 11 additions and 2 deletions

View File

@ -448,13 +448,15 @@ Config =
'Hide Thumbnails': [
false
]
# Fit Width =/= Fit width
'Fit Width': [
'Fit Width': [ # 'Fit width' (lowercase W) belongs to Image Expansion. Engine limitations, heh.
true
]
'Fit Height': [
true
]
'Scroll to Post': [
true
]
'Slide Delay': [
5.0
]

View File

@ -165,6 +165,13 @@ Gallery =
# Center selected thumbnail
nodes.thumbs.scrollTop = @offsetTop + @offsetHeight/2 - nodes.thumbs.clientHeight/2
# Scroll to post
try
if Conf['Scroll to Post'] and post = (post = g.posts[file.dataset.post])?.nodes.root
Header.scrollTo post
catch err
console.log err
image: (e) ->
e.preventDefault()
e.stopPropagation()