diff --git a/js/scrollSpeed.js b/js/scrollSpeed.js index e606b82..0f2ac78 100644 --- a/js/scrollSpeed.js +++ b/js/scrollSpeed.js @@ -4,8 +4,8 @@ (function ($, Drupal, drupalSettings) { Drupal.behaviors.mybehavior = { attach: function (context, settings) { - var step = drupalSettings.smooth_scroll.scrool_speed.step; - var speed = drupalSettings.smooth_scroll.scrool_speed.speed; + var step = drupalSettings.smooth_scroll.scroll_speed.step; + var speed = drupalSettings.smooth_scroll.scroll_speed.speed; var easing = ''; var $document = $(document), $window = $(window), diff --git a/smooth_mouse_scrolling.module b/smooth_mouse_scrolling.module index 1f4229c..a9460ed 100644 --- a/smooth_mouse_scrolling.module +++ b/smooth_mouse_scrolling.module @@ -30,7 +30,7 @@ function smooth_mouse_scrolling_page_attachments(array &$page) { $smoth_config = \Drupal::config('smooth_mouse_scrolling.settings'); $step = $smoth_config->get('step'); $speed = $smoth_config->get('speed'); - $page['#attached']['library'][] = 'smooth_mouse_scrolling/scrool-speed'; - $page['#attached']['drupalSettings']['smooth_scroll']['scrool_speed']['step'] = $step; - $page['#attached']['drupalSettings']['smooth_scroll']['scrool_speed']['speed'] = $speed; + $page['#attached']['library'][] = 'smooth_mouse_scrolling/scroll-speed'; + $page['#attached']['drupalSettings']['smooth_scroll']['scroll_speed']['step'] = $step; + $page['#attached']['drupalSettings']['smooth_scroll']['scroll_speed']['speed'] = $speed; } \ No newline at end of file diff --git a/smooth_mouse_scrolling.routing.yml b/smooth_mouse_scrolling.routing.yml index 5fb2975..4174129 100644 --- a/smooth_mouse_scrolling.routing.yml +++ b/smooth_mouse_scrolling.routing.yml @@ -1,5 +1,5 @@ smooth_mouse_scrolling.form: - path: '/admin/config/smooth_scrool' + path: '/admin/config/smooth_scroll' defaults: _title: 'Smooth mouse scrolling configuration' _form: '\Drupal\smooth_mouse_scrolling\Form\SmoothScroll'