better defaults in demo

This commit is contained in:
nightwing 2012-04-24 22:18:06 +04:00
commit a97d104e25
2 changed files with 3 additions and 2 deletions

View file

@ -481,6 +481,7 @@ bindCheckbox("show_hscroll", function(checked) {
env.editor.renderer.setHScrollBarAlwaysVisible(checked);
});
env.editor.setAnimatedScroll(true);
bindCheckbox("animate_scroll", function(checked) {
env.editor.setAnimatedScroll(checked);
});

View file

@ -101,8 +101,8 @@ var VirtualRenderer = function(container, theme) {
this.$cursorPadding = 8;
// Indicates whether the horizontal scrollbar is visible
this.$horizScroll = true;
this.$horizScrollAlwaysVisible = true;
this.$horizScroll = false;
this.$horizScrollAlwaysVisible = false;
this.$animatedScroll = false;