mozilla/pdf.js — Issue #858: Create API for rendering text selection layer
Author: arturadib
Created: 2011-12-01 16:20:15+00:00
State: open

Right now the heuristics of when to render the layer is built into `canvas.js`, which sets/resets the rendering timers inside `beginDrawing/endDrawing` calls. It's surely better than no heuristics at all, but it still makes the UI a bit choppy -- ideally we should listen for scroll events, and always reset the queue timer when such events are fired.

By creating a separate API for rendering the text layer (`page.renderTextLayer()`?) we'll let our users implement this heuristics outside our code base.