scrollbar sending messages to editor

7 views
Skip to first unread message

Joe

unread,
Apr 16, 2011, 12:18:51 PM4/16/11
to Ymacs - AJAX code editor
Hi,
I changed ymacs.css to have:

.Ymacs-frame-overlays {
overflow: auto; /* hidden */
position: relative;
}

So now I have scrollbars when they're needed (i also removed the
1000px padding at the bottom):

.Ymacs-frame-content {
white-space: pre;
/* padding-bottom: 1000px; */
}
not sure why that is there, hopefully it's not required for something.

Now the mouse scrollwheel works and I can scroll by sliding the
scrollbar. The only problem is that when I scroll with the scrollbar,
the cursor gets moved to the line that corresponds to where I click on
the scrollbar, and text starts to be selected as I scroll up and down,
also errors appear in my console like:

Uncaught RangeError: Maximum call stack size exceeded
a._genericEventHandlerthelib.js:12
thelib.js:12Uncaught TypeError: Property '0' of object is not a
function

So how can I make it so that when i use the scrollbar, the events
don't go into the editor, just scroll like normal?

Also, where can i get the latest uncompressed source for thelib.js? I
see that the version at http://www.dynarchlib.com/download is older
than the one that comes with ymacs.

thanks,
-joe



Reply all
Reply to author
Forward
0 new messages