Prevent scroll event on scrollTop or scrollTo function
<p>I'm doing a little jQuery plugin, and i'm confront a problem.</p>

<p>I read all internet without find a pertinent answer...</p>

<p>I have to say i dont want to prevent scroll at all, it's a little more complicated :</p>

<p>I have a system who scroll on the window with the jQuery function scrollTop(int y), but it's the same thing with the native javascript scrollTo(int y) (or scrollBy, indeed)</p>

<p>When those function are called, they trigger a 'scroll' event. And i dont want those functions to trigger this event, so i want to block it.</p>

<p>jQuery event.preventDefault(); doesn't work, obviously cause it block event action in event handlers function, so i just want this scroll event don't even be trigger.</p>

<p>I will be very thankful for help, cause i havent any ideas how to do that. </p>
