cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-08-27 13:07:21 +03:00
parent 46b5622d84
commit 9517f90f1e

View File

@ -1238,19 +1238,11 @@ var LockUnfocusedActions = actions.Actions({
config: { config: {
'lock-unfocused': 'on', 'lock-unfocused': 'on',
// The timeout to wait after window focus before setting .focused // The timeout to wait after window focus before unlocking the
// to true. // viewer
'window-focus-timeout': 200, 'window-focus-timeout': 200,
}, },
// Focus...
//
// This is true when window is focused and false when not + 200ms
// after focusing.
// This enables the used to ignore events that lead to window focus.
get focused(){
return that.dom.find('.lock-clicks').length > 0 },
toggleUnfocusedLock: ['Interface/Lock unfocused viewer', toggleUnfocusedLock: ['Interface/Lock unfocused viewer',
core.doc`Toggle unfocused viewer locking... core.doc`Toggle unfocused viewer locking...