fix keyboard scrolling in chrome
This commit is contained in:
parent
19d680c1d9
commit
deaf77ef5c
1 changed files with 7 additions and 3 deletions
|
@ -636,7 +636,10 @@ requires
|
|||
bufferTime = time;
|
||||
}
|
||||
focused && $elements[focused].triggerEvent('key_' + key);
|
||||
//return false;
|
||||
if (['down', 'space', 'up'].indexOf(key) > -1) {
|
||||
// prevent chrome from scrolling
|
||||
return false;
|
||||
}
|
||||
/*
|
||||
$.each(stack, function(i, v) {
|
||||
// fixme: we dont get the return value!
|
||||
|
@ -711,7 +714,7 @@ requires
|
|||
|
||||
function callback(data) {
|
||||
delete requests[options.id];
|
||||
Ox.length(requests) == 0 && $body.trigger('requestStop');
|
||||
//Ox.length(requests) == 0 && $body.trigger('requestStop');
|
||||
options.callback && options.callback(data);
|
||||
}
|
||||
|
||||
|
@ -843,7 +846,7 @@ requires
|
|||
url: options.url
|
||||
});
|
||||
//Ox.print('request', options.data, Ox.length(requests));
|
||||
Ox.length(requests) == 1 && $body.trigger('requestStart');
|
||||
//Ox.length(requests) == 1 && $body.trigger('requestStart');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4294,6 +4297,7 @@ requires
|
|||
|
||||
Ox.Select = function(options, self) {
|
||||
|
||||
// fixme: selected item needs attribute "checked", not "selected" ... that's strange
|
||||
var self = self || {},
|
||||
that = new Ox.Element('div', self) // fixme: do we use 'div', or {}, or '', by default?
|
||||
.defaults({
|
||||
|
|
Loading…
Reference in a new issue