reduce powerTip poll interval

pull/867/merge
Thibault Duplessis 2015-09-01 01:16:19 +02:00
parent ce834c6b88
commit 9d895e13b4
3 changed files with 4 additions and 1 deletions

View File

@ -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,

View File

@ -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() {

View File

@ -52,6 +52,7 @@ function playerTr(ctrl, player) {
});
}
$(el).find('.glpt').removeClass('glpt').powerTip({
intentPollInterval: 300,
fadeInTime: 100,
fadeOutTime: 100,
placement: 'w',