Commit Graph

864 Commits

Author SHA1 Message Date
Mark Salsbery
0bbf6bc58a Unit tests for canvas drag, release, click events 2013-08-30 10:09:22 -07:00
Ian Gilman
7f88bf78b6 Changelog for #208 2013-08-30 09:53:09 -07:00
iangilman
b2ecdcdc2a Merge pull request #208 from acdha/ie8-ajax-error-handler-fix
Fix AJAX error reporting on IE8
2013-08-30 09:52:11 -07:00
Chris Adams
baa3559df1 Graceful handling of cross-domain tilesource failures on IE<10
The TileSource error handling path used to raise non-obvious
"Unspecified error" exceptions on IE < 10 when configured with a URL
from a different origin (hostname or port) because the handler included
``xhr.status`` in the error message, triggering a security exception.

Now the second exception is caught and the log message will use the
original exception message instead to make the root cause more obvious.
2013-08-30 12:32:17 -04:00
Chris Adams
1b6cf93474 Graceful handling of IE cross-domain AJAX failures
Prior to IE 10, XmlHttpRequest cannot be used for requests to a
different origin even when the target URL's CORS headers would allow
access (see http://caniuse.com/#feat=cors).

This is easy to miss in testing if you use a single origin during
testing but have a CDN or domain-sharding for production and will break
the error handler function passed to makeAjaxRequest() if that code
assumes it can access properties on the request object.

This adds a more informative pointer to Microsoft's documentation when a
security exception is raised.
2013-08-29 16:13:18 -04:00
Mark Salsbery
1a005573f5 Unit tests for canvas drag, release, click events 2013-08-29 13:01:07 -07:00
iangilman
1a5f712aee Added a mention about basic.html 2013-08-29 10:30:56 -07:00
Mark Salsbery
6049a7ecef Unit tests for canvas drag, release, click events
Added test for canvas-drag, canvas-release, and canvas-click events
2013-08-28 11:33:41 -07:00
iangilman
9af81aa6de Merge pull request #206 from msalsbery/Events-Unit-Tests
Unit tests for userData in events (issue #203)
2013-08-28 10:07:19 -07:00
Ian Gilman
9373ecc3cb Changelog for #204 2013-08-28 09:58:13 -07:00
iangilman
340f753831 Merge pull request #204 from msalsbery/master
Fixes for issues #198, #201, #202, #203
2013-08-28 09:54:11 -07:00
Mark Salsbery
853a141994 Unit tests for userData in events (issue #203) 2013-08-28 05:50:22 -07:00
Mark Salsbery
c7f184f199 Reverted breaking change for issue #201
To be grouped with other breaking changes for major version release.
Also, minor formatting fix in src/eventhandler.js
2013-08-27 10:10:55 -07:00
Mark Salsbery
57ae0656c1 Fixes for issues #198, #201, #202, #203 2013-08-26 16:48:59 -07:00
Mark Salsbery
f8ab315795 Revert "Bad sync"
This reverts commit 70a7e8090e13cc35b93e652d2bcd7f418af26fc1.
2013-08-26 15:48:03 -07:00
Mark Salsbery
04a0197dc7 Fixes for issues #198, #201, #202, and #203 2013-08-26 15:25:57 -07:00
Ian Gilman
445c1e3e66 Starting 0.9.131 2013-08-26 14:02:03 -07:00
Ian Gilman
4d006d628c Updated for 0.9.130 2013-08-26 13:58:16 -07:00
Ian Gilman
6ca934d0ca Added changelog for #185 2013-08-20 11:10:50 -07:00
iangilman
aefe7f3610 Merge pull request #185 from robhobbes/master
Adding partial support for rotation.
2013-08-20 11:08:58 -07:00
Robert Hickman
d4467477ad More rotation documentation. 2013-08-19 16:29:22 -06:00
Ian Gilman
4b0450d271 Documented "current" param to a number of viewport functions 2013-08-19 10:14:04 -07:00
Ian Gilman
17ef51e309 Changelog for #179 2013-08-19 10:05:05 -07:00
Ian Gilman
0c1823fa42 Changelog for #188 2013-08-19 10:05:05 -07:00
iangilman
d2353746c9 Merge pull request #179 from lukemurray/destroy
Add a destroy function on the viewer to clean up and remove elements
2013-08-19 10:03:12 -07:00
iangilman
dde052a22a Merge pull request #188 from iangilman/touch
Ignoring touchMove if we didn't get the touchStart
2013-08-19 09:57:36 -07:00
Ian Gilman
6e58aa7108 changelog for #187 2013-08-19 09:56:22 -07:00
iangilman
e955c402ac Merge pull request #187 from iangilman/rtl
Drawer now works when the page is rtl
2013-08-19 09:55:04 -07:00
Robert Hickman
767c897e7f Revisions to rotate after second code review. 2013-08-16 11:32:21 -06:00
Ian Gilman
8b61b7f587 Changelog for #184 2013-08-16 10:13:52 -07:00
iangilman
d310cc3029 Merge pull request #184 from iangilman/form
Clicking on a button control no longer refreshes page
2013-08-16 10:12:35 -07:00
Ian Gilman
96c14f7617 Ignoring touchMove if we didn't get the touchStart 2013-08-16 10:09:49 -07:00
Robert Hickman
54e8d8c43f Fixes made after first code review of rotation. 2013-08-15 16:15:20 -06:00
Ian Gilman
6669589e5e Drawer now works when the page is rtl 2013-08-15 12:54:32 -07:00
Robert Hickman
6c63710131 Rotating overlays. 2013-08-14 13:43:49 -06:00
Ian Gilman
adbf35e002 Merge branch 'master' into form 2013-08-14 10:41:32 -07:00
Ian Gilman
3272572124 Clicking on a button control no longer refreshes page 2013-08-14 10:39:39 -07:00
Robert Hickman
b9583c43ac Working on rotating images.
So far only 90 degree rotation is supported.
Only the image is currently being rotated.
Overlays, debugger, and the navigator still need to be updated to support rotation.
2013-08-13 16:32:04 -06:00
Luke Murray
ab82783cf1 update the comments and unit test 2013-08-13 10:33:12 +10:00
Luke Murray
0c662b8a8d fix: comment updates and add a simple test for viewer.destroy 2013-08-12 16:38:37 +10:00
thatcher
26ad522f59 updated chagelog to reflect navigatorPosition patch 2013-08-09 06:47:25 -04:00
Luke Murray
68f9d675fc fix: calling viewer.destroy() multiple times throw an error. And a simple destroy to mousetracker 2013-08-08 17:49:24 +10:00
thatcher
88141c57f2 feature: navigatorPosition, option was available but not completely implemented 2013-08-08 00:12:44 -04:00
Luke Murray
4ccb141a42 Add a destroy function on the viewer to clean up and remove elements
created by open seadragon. Add removeAllHandlersForAllEvents to clean up all events on destroy. Clear
the onDraw callback on Overlay destroy.
2013-08-07 10:54:20 +10:00
Ian Gilman
967f2e4f32 Changelog for #177; minor doc tweaks 2013-08-02 09:40:55 -07:00
iangilman
51e37e3553 Merge pull request #177 from pnorcross/_getSafeElemSize
(hopefully) Final fix for issue #109, Viewport Broken on Hide.
2013-08-02 09:36:06 -07:00
iangilman
8e36f9eead Merge pull request #165 from bgilbert/releases
Update for GitHub-hosted release binaries
2013-08-01 10:53:49 -07:00
pnorcrss
26938ed10e cleaned up docBlock and tabs in _getSafeElemWidth() 2013-08-01 12:11:33 -05:00
Ian Gilman
1482f21d11 Changelog for #160 2013-08-01 09:55:18 -07:00
iangilman
f53ea2ddf1 Merge pull request #160 from lukemurray/custom_zoom_handler
Add the option for a zoom handler callback
2013-08-01 09:52:11 -07:00