Mailspring/internal_packages/composer/lib
Evan Morikawa 9859e594f2 feat(composer): typing at the end of the composer tracks scrolling
Summary:
When you're typing at the end of the composer, then the composer should
look like it's scrolling along with you.

When you're typing in the middle of the composer, if the footer
inforamtion scrolls past the end of the page, then that's fine.

When the selection changes, the contenteditable component now caches
whether or not the selection is at the end of the content. It has to do it
at this point, otherwise the cloned, cached DOM nodes of the saved
selection are not the same nodes that will show up in the future.

Whether the cursor is at the end is queried by the composer on a body
change. If it is, then the composer expects a callback from its parent
(the message list), to call to update the scroll position.

The message list immediately updates the scroll position to move the
bottom of the composer to the bottom of the message-wrap window.

Test Plan: edgehill --test

Reviewers: bengotow

Reviewed By: bengotow

Differential Revision: https://review.inboxapp.com/D1366
2015-03-27 19:35:27 -04:00
..
composer-view.cjsx feat(composer): typing at the end of the composer tracks scrolling 2015-03-27 19:35:27 -04:00
contenteditable-component.cjsx feat(composer): typing at the end of the composer tracks scrolling 2015-03-27 19:35:27 -04:00
contenteditable-toolbar.cjsx feat(contenteditable): a React compatible contenteditable 2015-03-02 15:33:58 -08:00
file-uploads.cjsx feat(title-bar): Custom titlebar in main app window (darwin-only) 2015-03-13 17:02:46 -07:00
floating-toolbar.cjsx feat(composer): floating toolbar now fades in 2015-03-19 17:16:38 -07:00
main.cjsx feat(threads): List improvements and message collapsing 2015-03-25 12:41:48 -07:00
new-compose-button.cjsx feat(ui): Updates from March 17th mockups 2015-03-18 18:21:04 -07:00
participants-text-field.cjsx fix(*) Small visual tweaks and fixes - see summary 2015-03-25 18:22:52 -07:00
scribe-template-regions.js fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00