ep_cursortrace
Advanced tools
Comparing version 2.0.12 to 2.0.14
@@ -7,5 +7,5 @@ /*** | ||
var authorManager = require("../../src/node/db/AuthorManager"), | ||
padMessageHandler = require("../../src/node/handler/PadMessageHandler"), | ||
async = require('../../src/node_modules/async'); | ||
var authorManager = require("ep_etherpad-lite/node/db/AuthorManager"), | ||
padMessageHandler = require("ep_etherpad-lite/node/handler/PadMessageHandler"), | ||
async = require('ep_etherpad-lite/node_modules/async'); | ||
@@ -12,0 +12,0 @@ var buffer = {}; |
{ | ||
"name": "ep_cursortrace", | ||
"description": "Show cursor/caret movements of other users in real time", | ||
"version": "2.0.12", | ||
"version": "2.0.14", | ||
"author": "RedHog (Egil Moeller) <egil.moller@freecode.no>", | ||
@@ -6,0 +6,0 @@ "repository":"git@github.com:redhog/ep_cursortrace.git", |
@@ -126,3 +126,8 @@ var initiated = false; | ||
var innerWidth = inner.contents().find('#innerdocbody').width(); | ||
var leftOffset = $(inner)[0].offsetLeft +3; | ||
// it appears on apple devices this might not be set properly? | ||
if($(inner)[0]){ | ||
var leftOffset = $(inner)[0].offsetLeft +3; | ||
}else{ | ||
var leftOffset = 0; | ||
} | ||
var stickUp = false; | ||
@@ -129,0 +134,0 @@ var stickLeft = true; |
19639
474