<commit_before>#= require jquery.mousewheel

$.fn.preventScrollPropagation = ->
  @each ->
    $(this).bind 'mousewheel', (event, delta) ->
      if delta > 0 && $(this).scrollTop() <= 0
        event.preventDefault()
      else if delta < 0 && $(this).scrollTop() >= $(this).get(0).scrollHeight - $(this).innerHeight()
        event.preventDefault()
<commit_msg>Allow nesting of scrollable containers by stopping propagation. Fixes #1178<commit_after>#= require jquery.mousewheel

$.fn.preventScrollPropagation = ->
  @each ->
    $(this).bind 'mousewheel', (event, delta) ->
      event.stopPropagation() # allow nesting of scrollable containers

      if delta > 0 && $(this).scrollTop() <= 0
        event.preventDefault()
      else if delta < 0 && $(this).scrollTop() >= $(this).get(0).scrollHeight - $(this).innerHeight()
        event.preventDefault()

{'fraction_non_alphanumeric': 0.16744186046511628, 'fraction_numerical': 0.013953488372093023, 'mean_word_length': 3.4381443298969074, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6439752', 'n_tokens_mistral': 256, 'n_tokens_neox': 248, 'n_words': 61}