```coffeescript
class @LayoutNav
  $ ->
    $('#scrolling-tabs').on 'scroll', ->
      currentPosition = $(this).scrollLeft()
      return if currentPosition == 0
      if $('.nav-control').length
        maxPosition = $(this)[0].scrollWidth - $(this).parent().width() + 59
      else
        maxPosition = $(this)[0].scrollWidth - $(this).parent().width()

      $('.fade-out').toggleClass('end-scroll', currentPosition is maxPosition)
```

Check screen width before increasing max position
user
```coffeescript
class @LayoutNav
  $ ->
    $('#scrolling-tabs').on 'scroll', ->
      currentPosition = $(this).scrollLeft()
      return if currentPosition == 0
      maxPosition = $(this)[0].scrollWidth - $(this).parent().width()
      maxPosition += 59 if $('.nav-control').length and window.innerWidth > 480

      $('.fade-out').toggleClass('end-scroll', currentPosition is maxPosition)
```
assistant