Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Dec 25, 2011
  1. @joseph

    Test that slider setX is actually resulting in movement.

    joseph authored
    If it is, register the callback as usual to fire when transition
    completes. If it isn't, simply defer the callback.
    This fixes a pernicious little bug where slowly cancelling a page turn
    in the Slider would "lock" the page -- you couldn't turn it again
    without a jump.
Commits on Dec 13, 2011
  1. @joseph

    Stencil applies href to <a> immediately rather than on click.

    joseph authored
    Firefox (recently?) does not pick up changes to href in the click event.
  2. @joseph

    Don't reuse test frames.

    joseph authored
    As per previous commit, it's not really reliable.
Commits on Dec 2, 2011
  1. @joseph

    Reuse test frame src if content is identical.

    joseph authored
    This fixes the problem of Firefox issuing requests for 'undefined', so
    we can close #75. There is a question about whether this is the right
    approach -- it's faster, but if tests modify the dom/styles of the test
    frame, things get unpredictable...
  2. @joseph

    moveTo now dispatches a notfound event if given an invalid locus.

    joseph authored
    This is handy in a number of places, including search functionality.
  3. @joseph

    Several fixes for rendering in UIWebKit views.

    joseph authored
    Firstly, a bit more resilience against these views having weird UA
    strings. This has been tested in the Facebook iOS apps, where Monocle
    was breaking because it wasn't recognised as a WebKit browser.
    Secondly, UIWebKit apparently doesn't recognised the "about:blank" URL,
    so it was choking during the priming of frames. The little workaround is
    to direct UIWebKit frames to "blank.html" instead, which should just
    non-fatally 404 if there's nothing there. You could always put something
    there in this case. Refs #51.
Commits on Oct 17, 2011
  1. @joseph
  2. @joseph

    Merge pull request #66 from joseph/transitions

    joseph authored
    Smoother transitions and animation in more browsers. Fixes #2.
Commits on Oct 14, 2011
  1. @joseph
  2. @joseph
  3. @joseph
  4. @joseph

    Workaround for iPad's sticky slideOut.

    joseph authored
    Not much return for four hours work.
  5. @joseph
  6. @joseph

    Tidying a few Reader constants.

    joseph authored
    AbortMessage now supplanted by monocle:incompatible.
  7. @joseph
  8. @joseph

    Less ugly and less obtrusive Slider wait control.

    joseph authored
    I've always hated it. Now should only appear if the next page is
    actually taking a while to set (because it has a slight transition on
    the opacity, so near-zero setPage times shouldn't ever let the opacity
    reach 1). Need to test this on slower devices.
  9. @joseph

    Removing more superfluous defers and speeding successive turns.

    joseph authored
    There's no point stacking the various style changes successively -- all
    of them will be applied on the next defer. So, just ensure there is a
    single defer before announcing the page change.
    Also, we can make the slide faster if there's been another slide very
    recently -- the user is obviously paging through the book quickly; let's
    not get in their way.
  10. @joseph
  11. @joseph
  12. @joseph
  13. @joseph
  14. @joseph
  15. @joseph
  16. @joseph
  17. @joseph

    Translating frame body in 3d too flickery. New iOS fix for blank slider.

    joseph authored
    This one involves switching the order in which "onGoingBackward" works.
    Seems to have given a bit of a speed boost too.
Commits on Oct 10, 2011
  1. @joseph

    Must nuke padding and margins on body.

    joseph authored
    Otherwise page dimension calculations get blown out on iOS WebKit.
Commits on Sep 23, 2011
  1. @joseph
  2. @joseph
  3. @joseph

    API-CHANGE: controlshow/hide events now prefixed with monocle:

    joseph authored
    If you are listening to these events, you need to update your code to
    listen to 'monocle:controlshow' and 'monocle:controlhide' instead.
    The 'evt.m' object is no longer the control object itself -- it's now an
    object with a 'control' property, whose value is the control object.
    This brings these two events into conformance with other Monocle custom
  4. @joseph

    Wait for a monocle:turn event before dispatching monocle:loaded.

    joseph authored
    I think this fixes #57, but I haven't been able to completely reproduce
    it. See the test/events/index.html test in particular.
  5. @joseph
Commits on Sep 15, 2011
  1. @joseph
Commits on Sep 14, 2011
  1. @joseph

    eInk panel now supports keyboard events, and clicking backwards.

    joseph authored
    Clicking on the left half of the page now goes backwards; right half
    goes forwards. PageUp/PageDown are registered to backwards/forwards
  2. @joseph
  3. @joseph

    Define locus objects with CSS selector strings.

    joseph authored
    Much like the XPath support in locus objects, if you create an object
    like { selector: 'p:nth-of-type(3)' }, you can jump to that element in
    all open pages.
Something went wrong with that request. Please try again.