Mihai Varga
f312736e18
Skip fadeAnimation rather than disabling it
...
Disabling it might cancel currently fading in tiles
e.g. when scrolling we want fadeAnimation but if a tile invalidation
occurs that would completly disble fadeAnimation and new tiles requested
by scrolling will not load
2015-07-01 11:13:14 +03:00
Mihai Varga
d0586f9267
Maintain an invalidation count for each tile
...
Count how many times a tile has been invalidated.
For each inalidation increase the counter and for each arrival
of the new tile decrease it.
Only cache tiles with the invalidation count equal to 0 because
when zooming, we might cancel previous requests and the tiles in the
old zoom layer are no longer valid
2015-07-01 10:47:05 +03:00
Mihai Varga
d45a967e8d
Disable animFade when zooming + cache tiles from other zoom levels
2015-06-30 20:23:07 +03:00
Mihai Varga
fca2f030fe
Just mention that this will be the future toolbar
2015-06-30 15:05:32 +03:00
Mihai Varga
842c50d163
Update cursor on zoomend
2015-06-30 12:56:47 +03:00
Mihai Varga
d0f420bc81
Added a set of keys that need to be handled on the keydown event
2015-06-30 11:34:24 +03:00
Mihai Varga
1714df5f9e
Scroll to cursor position if it's out of the viewing area
2015-06-29 19:02:58 +03:00
Mihai Varga
1acd0ab78d
Ignore scroll event when zooming
...
That event is fired because of container resize.
This time I've added a method that resets the ignoreScroll flag
after 200ms if it's not reseted until then.
2015-06-29 18:42:20 +03:00
Mihai Varga
5ccda335ef
Start in edit mode by specifying it in the URL
...
http://.../host=host_address&file_path=file_path&edit=true
2015-06-29 16:43:47 +03:00
Mihai Varga
cfa8912063
Start loleaflet in viewing mode
2015-06-29 15:54:25 +03:00
Mihai Varga
96aa6e2048
Restore focus to textArea after dragging handle
2015-06-29 15:17:43 +03:00
Mihai Varga
2e5e63724e
Restored tile cache and removed invalid tiles from it
2015-06-29 12:45:14 +03:00
Mihai Varga
0c1a0b1b12
Fix firefox backspace after handling it for chrome
2015-06-29 12:14:26 +03:00
Mihai Varga
bed964c00d
Fix backspace input on chrome
2015-06-29 11:37:02 +03:00
Mihai Varga
a32278cb2b
Don't send 2 clicks before sending dblclick
...
Mouse events are now put in a queue. If within 250ms from the first
click arrives another, it's a double click, the previos and the current
clicks are canceled and a dblclick command is sent instead.
2015-06-29 10:54:32 +03:00
Henry Castro
ec2de8f46e
loleaflet: Disable mouse when dragging text.
2015-06-29 00:27:00 -04:00
Henry Castro
fa3b208b7f
loleaflet: Selecting table does not reset handler.
2015-06-29 00:18:04 -04:00
Henry Castro
d25ed90b1e
loleaflet: Disable mouse when dragging image.
2015-06-27 19:38:31 -04:00
Jan Holesovsky
551672c08d
Further tweaks to the cursor position.
2015-06-27 00:07:35 +02:00
Henry Castro
acfad75fc9
loleaflet: Fix cursor visible when changing part.
2015-06-26 15:38:58 -04:00
Mihai Varga
fe4ff86335
Temporarily disable client cache
...
Until we invalidate tiles from all zoom levels
2015-06-26 19:29:02 +03:00
Mihai Varga
9a3e71bad8
Keyboard input is handled in a hidden textarea
...
We now have a hidden text area where the user's input actually goes,
but it also fires events that are caught by leaflet and are sent
to the server
2015-06-26 19:20:21 +03:00
Mihai Varga
bee60c69e8
Move the cursor to the left by half its size
2015-06-26 14:34:18 +03:00
Mihai Varga
e901c6fe34
Set marker not clickable during mouse selection
2015-06-26 12:43:57 +03:00
Mihai Varga
56418272ca
Fixed keyCode on chrome
2015-06-26 12:04:04 +03:00
Mihai Varga
3dffe1ed62
This should handle doc resize caused by page deletion
2015-06-26 10:11:57 +03:00
Henry Castro
38133c7886
loleaflet: Swap selection handler.
...
In order to get continuous selection, the handlers are swapped if the
distance from cursor to handlers cross over.
2015-06-25 23:29:58 -04:00
Henry Castro
392a4bbb85
loleaflet: Reset drag flag when no selection.
2015-06-25 20:36:53 -04:00
Henry Castro
48d7af6378
loleaflet: Avoid mouse click on blinking cursor.
2015-06-25 16:37:57 -04:00
Jan Holesovsky
be6b89d1aa
More tweaks wrt. cursor blinking.
2015-06-25 18:31:33 +02:00
Mihai Varga
32d6f4fc5f
Detect document size changes
2015-06-25 19:24:57 +03:00
Henry Castro
fa89bbd55b
loleaflet: Set cursor blinking linear
2015-06-25 12:15:38 -04:00
Mihai Varga
7858402ea4
Removed hungarian notation
2015-06-25 16:15:04 +03:00
Mihai Varga
f5c8ec852d
Fixed eslint errors in Control.EditView.js
2015-06-25 15:50:53 +03:00
Mihai Varga
a72d66f08b
Fixed eslint errors in Control.Parts.js
2015-06-25 15:48:51 +03:00
Mihai Varga
fa3a5ab0c1
Fixed eslint errors in Control.Search
2015-06-25 15:36:02 +03:00
Mihai Varga
7be20044be
Fixed eslint errors in Control.StatusIndicator.js
2015-06-25 15:25:46 +03:00
Mihai Varga
d85b853e33
Fixed eslint errors in Cursor.js
2015-06-25 15:24:41 +03:00
Mihai Varga
a04a0c4a9f
Fixed eslint errors in GridLayer.js
2015-06-25 15:23:03 +03:00
Mihai Varga
64f6e5647d
Fixed eslint errors in TileLayer.js
2015-06-25 15:16:14 +03:00
Mihai Varga
dfbc34af2f
Fix eslint errors in Map.js
2015-06-25 14:19:06 +03:00
Mihai Varga
2f6dd8a3e7
Ignore src/scrollbar when running jake lint
2015-06-25 13:49:51 +03:00
Mihai Varga
e9691e6557
Enable fadeAnimated only when zooming/scrolling
2015-06-25 13:25:03 +03:00
Mihai Varga
d977411f0c
Request selection content after selection and a time delta
2015-06-25 13:09:38 +03:00
Mihai Varga
bc65f57a54
tile invalidation: don't disable animFrame
...
This affects zooming. Instead just skip the method that calls
the animation frame
2015-06-25 12:35:31 +03:00
Mihai Varga
4b996b644d
Copy event handler
...
I implemented the solution found here
http://stackoverflow.com/questions/17527870/how-does-trello-access-the-users-clipboard#answer-17528590
which basically creates an invisible text area, sets focus to it,
selects the text, enables firing the oncopy then focus is restored to
the document.
2015-06-24 13:32:56 +03:00
Mihai Varga
1e5269a467
Clicking on a selection should deselect it
2015-06-23 14:56:03 +03:00
Mihai Varga
e8d5cbbb1e
Replaced 'dragging' with 'isDragged' because 'dragging' is already used
2015-06-23 14:23:35 +03:00
Mihai Varga
b5cbd467d9
Cancel tile request for tiles out of the visible area
...
This provides a better scrolling experience
When a large enough number of tiles have been requested we know that
they will cover the whole viewing area so we're able to cancel the
previous (not yet fulfilled) requests
2015-06-23 13:44:35 +03:00
Mihai Varga
d2124f3078
Fixed invalid tiles bounds
2015-06-22 17:48:05 +03:00