A responsive implementation of the pdf.js library
This is an example of how to implement a responsive version of the pdf.js framework into your own page.
This example uses the arrow keys to navigate the pdf. If you are on a touch device modernizr is used to check for available touch events and if present hooks them up as navigation.
I use debounce from lodash to make the resizing more friendly on the CPU.
The yellow box in the up right corner shows the interactions that is happening: right-, left-navigation and resizing.