This commit is contained in:
Mayhem 2013-05-05 18:20:27 +02:00
parent 41f4142aef
commit f1b6647475
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,5 @@
- Fix quote previews getting 'stuck' in Opera.
### 3.3.1 - *2013-05-04*
- Fix whitespaces not being preserved in code tags in /g/.

View File

@ -28,6 +28,21 @@ QuotePreview =
cb: QuotePreview.mouseout
asapTest: -> qp.firstElementChild
<% if (type === 'userjs') { %>
# XXX Opera workaround for "no mouseout fired" bug.
# Remove it once Opera uses Blink.
root = @
workaround = (e) ->
if @ is root
e.stopPropagation()
return
$.event 'mouseout', null, root
$.off d, 'mousemove', workaround
$.off root, 'mousemove', workaround
$.on d, 'mousemove', workaround
$.on root, 'mousemove', workaround
<% } %>
return unless origin = g.posts["#{boardID}.#{postID}"]
if Conf['Quote Highlighting']