round wheel replay is spectator only to avoid touchpad play troubles
This commit is contained in:
parent
cea847079d
commit
e40a18e19e
|
@ -29,7 +29,7 @@ function visualBoard(ctrl) {
|
|||
return m('div.lichess_board_wrap', [
|
||||
m('div.lichess_board.' + ctrl.data.game.variant.key, {
|
||||
config: function(el, isUpdate) {
|
||||
if (!isUpdate) el.addEventListener('wheel', function(e) {
|
||||
if (!isUpdate && ctrl.data.player.spectator) el.addEventListener('wheel', function(e) {
|
||||
if (e.deltaY > 0) keyboard.next(ctrl);
|
||||
else if (e.deltaY < 0) keyboard.prev(ctrl);
|
||||
m.redraw();
|
||||
|
|
Loading…
Reference in a new issue