reduce powerTip poll interval
parent
ce834c6b88
commit
9d895e13b4
|
@ -644,6 +644,7 @@ lichess.desktopNotification = function(msg) {
|
|||
|
||||
function userPowertip($els, placement) {
|
||||
$els.removeClass('ulpt').powerTip({
|
||||
intentPollInterval: 200,
|
||||
fadeInTime: 100,
|
||||
fadeOutTime: 100,
|
||||
placement: placement,
|
||||
|
@ -664,6 +665,7 @@ lichess.desktopNotification = function(msg) {
|
|||
|
||||
function gamePowertip($els, placement) {
|
||||
$els.removeClass('glpt').powerTip({
|
||||
intentPollInterval: 200,
|
||||
fadeInTime: 100,
|
||||
fadeOutTime: 100,
|
||||
placement: placement,
|
||||
|
|
|
@ -51,12 +51,12 @@ function renderPlot(ctrl, hook) {
|
|||
config: function(el, isUpdate, ctx) {
|
||||
if (isUpdate) return;
|
||||
$(el).powerTip({
|
||||
intentPollInterval: 100,
|
||||
fadeInTime: 0,
|
||||
fadeOutTime: 0,
|
||||
placement: hook.rating > 2200 ? 'se' : 'ne',
|
||||
mouseOnToPopup: true,
|
||||
closeDelay: 200,
|
||||
intentPollInterval: 50,
|
||||
popupId: 'hook'
|
||||
}).data('powertipjq', $(renderHook(ctrl, hook)));
|
||||
ctx.onunload = function() {
|
||||
|
|
|
@ -52,6 +52,7 @@ function playerTr(ctrl, player) {
|
|||
});
|
||||
}
|
||||
$(el).find('.glpt').removeClass('glpt').powerTip({
|
||||
intentPollInterval: 300,
|
||||
fadeInTime: 100,
|
||||
fadeOutTime: 100,
|
||||
placement: 'w',
|
||||
|
|
Loading…
Reference in New Issue