Having an Unwanted Scroll Issue

Having an Unwanted Scroll Issue

Hello,

I am using a calendar plugin called Frontier Calendar and as the title suggests, I'm seeing an unwanted scroll when you click a button. There is so much JS code with this plugin that I have not been able to find any problems that way. I will post what little scroll related code that I've created but what I would like to ask is - is there a way to alert when there is a scroll event or any active scroll events?

Or could this be a CSS issue?

Here is what I've written for scroll stuff:

  1. $("#clearButton").click(function(){
            $("html, body").animate({ scrollTop: 890}, 2000);
            setTimeout(function(){
                page.stop();
            },
            2000);
        });


  1. 'Confirm': function() {
                    //alert("Make your own confirm process! " + globTitle + globStartDt);
                    globStartDt = globStartDt.substr(globStartDt.indexOf(' ')+1); //Remove name of day
                    var dateArr = globStartDt.split(" "); //Split chosen date into array
                    globStartDt = "";
                    var monthNum = ($.inArray(dateArr[0], monthNames)) + 1; //Compare 3 letter month to month array to get index + 1
                    if(monthNum < 10){monthNum = "0" + monthNum}; //Add leading 0 if needed
                    var dayNum = dateArr[1];
                   
                    globStartDt = dateArr[2] + "-" + monthNum + "-" + dayNum + " " + globTitle; //Build string to pass to DB in PHP form
                    //alert(globStartDt);
                   
                    $("#course").val(globStartDt);

                    $(this).dialog('close');
                    $("#form").show();
                    $("html, body").animate({ scrollTop: $("html, body").height() - $(window).scrollTop()}, 2000);
                }