lukesnowden / FSVS

Full Screen Vertical Scroll
https://www.lukesnowden.co.uk/full-screen-vertical-scroll/
723 stars 145 forks source link

Text boxes are not editable. Cannot enter data in the form. #46

Closed harrisbaitalrayan closed 6 years ago

harrisbaitalrayan commented 6 years ago

Thanks for the plugin lukesnowden. I ran into an issue when using your slider. In my page ( with class="fsvs"), I am including the footer using @include('page.footer').

The footer has a contact form. However the input text boxes in it are not editable.

In fact any input text box in the html page is not editable . I am able to click the submit button, but not able to enter anything into the text. This behaviour is when in the method $.fn.fsvs , mouseDragEvents is set as true.

I want the text boxes to be enabled, so that details could be entered into the form.

var slider = $.fn.fsvs({ autoPlay : false, speed : 1000, bodyID : 'fsvs-body', selector : '> .slide', mouseSwipeDisance : 100, afterSlide : function(){ $('.nav').removeClass('top'); }, beforeSlide : function(){ $('.nav').addClass('top'); }, endSlide : function(index) {

                    if( status == 1 ){
                        status = 0;
                        return false
                    }

              $.ajax({
                   url: '{{url('get-next-product')}}',
                   data: {'products_array':products_array},
                   success: function (data) {
                        if(data == 0){
                            return false 
                        }
                        products_array.push( data.id );                    

                        html = list_html(data);
                        $('<div class="slide">'+html+'</div>').appendTo( $('#fsvs-body') );
                   }
               });

                },
                mouseWheelEvents    : true,
                mouseWheelDelay     : false,
                mouseDragEvents     : true,
                touchEvents         : true,
                arrowKeyEvents      : true,
                pagination          : false,
                nthClasses          : 2,
                detectHash          : false,
            });

Kindly help.

Regards Harris

harrisbaitalrayan commented 6 years ago

Hi lukesnowden , i was using an older version . The execption for input in mousedown listener was not present in the old version. Its working fine with your new release.

Keep up the good work and thanks once again .

Regards Harris Thomas