Merge branch 'master' into make-widgets-cross-framework

This commit is contained in:
Evan Almloff committed 2023-06-30 12:44:15 -07:00
commit d99a5f3338
207 files changed
+9886 -1194

No files matched your search

+3 -2
View File
@@ -101,7 +101,8 @@ pub fn render<R: Driver>(
let event_tx_clone = raw_event_tx.clone();
if !cfg.headless {
std::thread::spawn(move || {
let tick_rate = Duration::from_millis(1000);
// Timeout after 10ms when waiting for events
let tick_rate = Duration::from_millis(10);
loop {
if crossterm::event::poll(tick_rate).unwrap() {
let evt = crossterm::event::read().unwrap();
@@ -188,7 +189,7 @@ pub fn render<R: Driver>(
.unwrap();
// the root node fills the entire area
let mut style = *taffy.style(root_node).unwrap();
let mut style = taffy.style(root_node).unwrap().clone();
let new_size = Size {
width: Dimension::Points(width),
height: Dimension::Points(height),