scroll events are now on the edit session

This commit is contained in:
Fabian Jakobs 2011-12-20 14:35:28 +01:00
commit ea23efaed2
2 changed files with 0 additions and 5 deletions

View file

@ -63,9 +63,6 @@ var Editor = function(renderer, session) {
this.container = container;
this.renderer = renderer;
renderer.on("scrollX", this._emit.bind(this, "scrollX"));
renderer.on("scrollY", this._emit.bind(this, "scrollY"));
this.textInput = new TextInput(renderer.getTextAreaContainer(), this);
this.keyBinding = new KeyBinding(this);

View file

@ -703,7 +703,6 @@ var VirtualRenderer = function(container, theme) {
if (this.scrollTop !== scrollTop) {
this.$loop.schedule(this.CHANGE_SCROLL);
this.scrollTop = scrollTop;
this._emit("scrollY", scrollTop);
}
};
@ -713,7 +712,6 @@ var VirtualRenderer = function(container, theme) {
this.scroller.scrollLeft = scrollLeft;
scrollLeft = this.scroller.scrollLeft;
this._emit("scrollX", scrollLeft);
};
this.scrollBy = function(deltaX, deltaY) {