 
   stickOrUnstick: (_e, target) =>
     stick =
-      if osu.isMobile()
-        @box[0]?.dataset.state == 'active'
+      if osu.isDesktop()
+        target == 'forum-topic-reply'
       else
-        target == 'forum-topic-reply'
+        @getState('active') == '1'
 
     @toggleStick(stick)
 

    @inputChange()
    $input[0].selectionStart = data.length

    @activate(e)


  deactivate: (e) =>
    e.preventDefault() if e

    @stickyFooter.markerDisable @marker()
    @setState 'active', '0'
    delete @box[0].dataset.state if @box[0].dataset.state?
    button.classList.remove 'js-activated' for button in @toggleButtons
    $.publish 'stickyFooter:check'
    @stickOrUnstick() if osu.isMobile()
    @disableFlash()



  toggleStick: (stick) =>
    isSticking = @getState('sticking') == '1'

    document.body.style.overflow =
      if !stick || osu.isDesktop()
        ''
      else
        'hidden'

    return if stick == isSticking

    box = @box[0]

    if stick
      @setState 'sticking', '1'
      box.dataset.state = 'active'
      target = @fixedBar[0]
      buttonAction = 'add'
    else
      @deleteState 'sticking'
      delete box.dataset.state if box.dataset.state?
      target = @container[0]
      buttonAction = 'remove'

    button.classList[buttonAction] 'js-activated' for button in @toggleButtons

    $input = @$input()
    inputFocused = $input.is(':focus')

    target.insertBefore(box, target.firstChild)

    $input.focus() if inputFocused
