Commit Graph

217 Commits

Author SHA1 Message Date
Mark Salsbery
545997bace MouseTracker now defaults to tracking on (#558) 2015-01-20 18:35:58 -08:00
Mark Salsbery
cb56e352cf Mousetracker Improvements
1) MouseTracker - Simulated touchenter/touchleave events now bubble to parent element MouseTrackers
2) MouseTracker - Improved multitouch support in enter/exit event handlers
3) MouseTracker - orphaned tracked touch pointers removed (fix for #539)
4) MouseTracker - removed touchenter/touchleave event support since the events don't exist on any known platform and have been removed from the W3C specification
5) Removed Viewer onContainerPress/onContainerRelease handlers (and the associated 'container-release' event ) that were never fired due to the canvas (child) element capturing the DOM events
6) Added 'canvas-enter', 'canvas-exit', and 'canvas-press' events to Viewer
7) ButtonGroup - removed obsolete MouseTracker event handlers
2015-01-15 12:15:22 -08:00
Mark Salsbery
cc1b6b7c6f Minor events.js test comment fix 2015-01-13 08:41:02 -08:00
Mark Salsbery
0d6fca35c1 Fix pointer type passed to capturePointer/releasePointer in pointer events model.
Remembered to change the test shim as well.
2015-01-12 16:08:26 -08:00
Mark Salsbery
755854d3f7 Renamed non-primary button events/handlers 2015-01-12 11:02:54 -08:00
Mark Salsbery
becd11b6ce Added unit tests 2015-01-11 10:06:07 -08:00
Mark Salsbery
8d4c776cd0 MouseTracker fixes for #502, #518, #527, #539 2014-12-30 12:57:17 -08:00
nein09
00510c6cc2 Refactor other looping tests that don't reopen the viewer in a similar manner. 2014-12-15 09:41:32 -08:00
nein09
aebfecb4e8 Factor out looping and reopening viewer into a helper method, based on Ian's example. 2014-12-14 13:15:50 -08:00
nein09
e901248816 Explicitly call viewport.update() after zooming and make the test expected values reflect that action. 2014-12-14 11:08:54 -08:00
nein09
c4fac82489 Clean up errors found by SublimeLinter. 2014-12-12 12:51:50 -08:00
nein09
17fddb2ff5 Merge branch 'master' of https://github.com/nein09/openseadragon into viewport-tests 2014-11-18 13:19:35 -08:00
nein09
614261876d Incorporate code review feedback - instantiate the viewer for looping ZoomLevel tests, change a few little syntax things 2014-11-18 13:05:58 -08:00
nein09
20711c485b getContainerSize test 2014-11-13 17:19:36 -08:00
nein09
ca7f79c896 Aspect ratio test 2014-11-13 09:04:11 -08:00
nein09
f765ab9933 min and max zoom level tests 2014-11-13 08:55:15 -08:00
Ian Gilman
1366bb7abe Touch-ups for #481 2014-11-07 16:07:04 -08:00
Ian Gilman
b15b94799c Merge branch 'issue-464' of github.com:SupplyFrame/openseadragon into SupplyFrame-issue-464 2014-11-07 15:48:57 -08:00
nein09
06e970bbc3 Last of the tests for pixel/point/rect conversion. 2014-11-06 18:30:24 -08:00
nein09
fd380afe7f Add tests for pixel <-> Point and viewport coordinates <-> image coordinates. Still working out the fine points of the target location. 2014-10-29 21:10:15 -07:00
nein09
19844c8f42 Incorporate code review feedback, add a times method to the Rect class. 2014-10-29 09:42:19 -07:00
nein09
e0fbf869c9 Replace more magic numbers with constants. 2014-10-27 18:06:37 -07:00
nein09
2d70ee32fc Remove randomness from test cases. 2014-10-27 17:58:59 -07:00
Ben Delarre
61d757e86b Merge branch 'master' into issue-465 2014-10-27 14:07:10 -07:00
nein09
c1ae3d08f7 More constants, fewer magic numbers. 2014-10-23 16:30:34 -07:00
nein09
72a0ecc195 Force a zoom factor of 2 and make that a constant; find the viewer position in the window for imageToWindowCoordinates (still not sure where the 20 x 20 pixel padding is coming from 2014-10-23 16:13:02 -07:00
nein09
8494b7ee7f Take out multiplication to avoid precision errors because it doesn't; add viewportToImageRectangle test 2014-10-21 11:19:41 -07:00
nein09
7cf4556cdc Merge remote-tracking branch 'origin/master' into viewport-tests 2014-10-20 15:43:21 -07:00
nein09
d9bd3343cc viewerElementToImageCoordinates 2014-10-15 17:00:11 -07:00
nein09
c6dd2f213d imageToViewerElementCoordinates and imageToWindowCoordinates 2014-10-15 16:54:09 -07:00
nein09
59ee91ea1a add test for windowToImageCoordinates 2014-10-15 12:22:52 -07:00
nein09
13045e2ac4 Use propEqual to verify Point values, add a stub test for imageToWindowCoordinates 2014-10-15 11:45:19 -07:00
nein09
e8d4c00c5f Add viewport.js to test.html so tests get run. Use built-in Point functions. Add a helper function to get a random number. 2014-10-09 16:58:45 -07:00
nein09
119ff4226d Add a new test file to hold the viewport tests, and a few new tests to it. 2014-10-02 13:20:28 -07:00
Ben Delarre
bbcb9c1219 Fixed bounds of test. 2014-09-23 11:32:37 -07:00
Ben Delarre
23c9155e52 Fixed comment. 2014-09-23 11:30:46 -07:00
Ben Delarre
f07108ec2d Updated implementation to better pass tests, still not 100% though. 2014-09-23 11:26:42 -07:00
Rob Sanderson
38da88c794 Fixing 2.0 test info.json 2014-09-04 12:28:52 -07:00
Rob Sanderson
cbdb0d19be IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
Rob Sanderson
984fb8c531 Fixed drawer, renamed source, fixed tests 2014-07-28 11:53:06 -07:00
iangilman
1e4288f770 Merge pull request #423 from henri-astre-msft/fitBoundsWithConstraints
add fitBoundsWithConstraints() to the viewport.
2014-07-24 09:28:53 -07:00
Henri Astre
d39971f80e renaming fitBounds to fitboundswithconstraints
it looks like github for windows is not detecting filename changes when
a letter change from upper to lower case.
2014-06-23 16:16:38 -07:00
Henri Astre
318071d3ce Cleanup for PR comments
- raise 'constrain' event inside applyBoundaryConstraints
- fix demo title/filename
- various fixes (default immediately to false + add private for
documentation)
2014-06-23 16:10:01 -07:00
Henri Astre
e7d8cff109 adding demo to show benefit of fitBoundsWithConstraints 2014-06-20 16:18:04 -07:00
Henri Astre
a563bdb658 fix .close() called after .destroy() + spacing 2014-06-18 10:35:23 -07:00
Henri Astre
764fa3e34a Fix memory leak while destroying the viewer. 2014-06-17 17:26:10 -07:00
Ian Gilman
eb58d3fd11 Fixed QUnit dependency 2014-06-05 09:53:03 -07:00
Mark Salsbery
41034705c1 Removed mousenter/mouseleave DOM Event Handling from Unit Tests 2014-05-05 10:44:17 -07:00
Mark Salsbery
8232546d51 Merged upstream changes, fixed conflicts 2014-04-24 12:40:49 -07:00
iangilman
669925776a Merge pull request #379 from avandecreme/ajax-file
Fix ajax call for file: and ftp: #73
2014-04-24 10:02:44 -07:00