Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function owl_scroll() { ?>
- <script>
- jQuery( function( $ ) {
- $( document ).ready( function() {
- $('.owl-carousel').bind('touchstart', function(e) {
- if ($(e.target).closest('.owl-carousel').length == 1) {
- blockMenuHeaderScroll = true;
- }
- });
- $('.owl-carousel').bind('touchend', function() {
- blockMenuHeaderScroll = false;
- });
- $('.owl-carousel').bind('touchmove', function(e) {
- if (blockMenuHeaderScroll) {
- e.preventDefault();
- }
- });
- });
- });
- </script>
- <?php }
- add_action( 'wp_head', 'owl_scroll', 13 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement