Fix unread errors when scrolling before the thread has finished loading.
Screw some css meant for Opera, it will move to webkit anyway.
This commit is contained in:
parent
39a7aa3c81
commit
39564417ba
File diff suppressed because one or more lines are too long
@ -383,7 +383,7 @@ a[href="javascript:;"] {
|
|||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
}
|
}
|
||||||
.qphl {
|
.qphl {
|
||||||
box-shadow: 0 0 0 2px rgba(216, 94, 49, .7);
|
outline: 2px solid rgba(216, 94, 49, .7);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* File */
|
/* File */
|
||||||
@ -422,17 +422,9 @@ a[href="javascript:;"] {
|
|||||||
.opContainer.filter-highlight {
|
.opContainer.filter-highlight {
|
||||||
box-shadow: inset 5px 0 rgba(255, 0, 0, .5);
|
box-shadow: inset 5px 0 rgba(255, 0, 0, .5);
|
||||||
}
|
}
|
||||||
.opContainer.filter-highlight.qphl {
|
|
||||||
box-shadow: inset 5px 0 rgba(255, 0, 0, .5),
|
|
||||||
0 0 0 2px rgba(216, 94, 49, .7);
|
|
||||||
}
|
|
||||||
.filter-highlight > .reply {
|
.filter-highlight > .reply {
|
||||||
box-shadow: -5px 0 rgba(255, 0, 0, .5);
|
box-shadow: -5px 0 rgba(255, 0, 0, .5);
|
||||||
}
|
}
|
||||||
.filter-highlight > .reply.qphl {
|
|
||||||
box-shadow: -5px 0 rgba(255, 0, 0, .5),
|
|
||||||
0 0 0 2px rgba(216, 94, 49, .7);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Thread & Reply Hiding */
|
/* Thread & Reply Hiding */
|
||||||
.hide-thread-button,
|
.hide-thread-button,
|
||||||
|
|||||||
@ -3285,9 +3285,6 @@ ThreadExcerpt =
|
|||||||
Unread =
|
Unread =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW isnt 'thread' or !Conf['Unread Count'] and !Conf['Unread Tab Icon']
|
return if g.VIEW isnt 'thread' or !Conf['Unread Count'] and !Conf['Unread Tab Icon']
|
||||||
$.on d, 'ThreadUpdate', @onUpdate
|
|
||||||
$.on d, 'QRPostSuccessful', @post
|
|
||||||
$.on d, 'scroll visibilitychange', @read
|
|
||||||
|
|
||||||
Thread::callbacks.push
|
Thread::callbacks.push
|
||||||
name: 'Unread'
|
name: 'Unread'
|
||||||
@ -3302,6 +3299,9 @@ Unread =
|
|||||||
posts.push post if post.isReply
|
posts.push post if post.isReply
|
||||||
Unread.addPosts posts
|
Unread.addPosts posts
|
||||||
Unread.update()
|
Unread.update()
|
||||||
|
$.on d, 'ThreadUpdate', @onUpdate
|
||||||
|
$.on d, 'QRPostSuccessful', @post
|
||||||
|
$.on d, 'scroll visibilitychange', @read
|
||||||
|
|
||||||
addPosts: (newPosts) ->
|
addPosts: (newPosts) ->
|
||||||
unless d.hidden
|
unless d.hidden
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user