Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Scrolling disabled within the content area – need to fix › Reply To: Scrolling disabled within the content area – need to fix
Hi!
There is indeed an issue with the scrolling, I can confirm that. Luckily I was able to quickly find what the cause is, and I can recommend a custom code to resolve it temporarily until the next release. It is caused by a single mistake, where the horizontal mousewheel handler is used when the scrollbar is not present.
Try adding this custom code to the functions.php in your theme/child theme directory. Before editing, please make sure to have a full site back-up just in case!
add_action('wp_footer', 'asp_remove_wheels');
function asp_remove_wheels() {
?>
<script>
jQuery(function($){
$(".asp_main_container").on("asp_results_show", function(event, id, instance, phrase) {
$('.asp_r .results').off('mousewheel');
});
$('.asp_r .results').off('mousewheel');
});
</script>
<?php
}
If you clear all the cache, this should resolve the problem for now.