mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-10 07:08:05 -05:00
wallet: fix 2 small chatview bugs, first is a typo from last commit, second is actually check is_select_mode when its modified after long hold
This commit is contained in:
@@ -16,10 +16,16 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// channel wait until deadline
|
||||
#![feature(deadline_api)]
|
||||
// Adds remainder() fn for String::split() result
|
||||
#![feature(str_split_whitespace_remainder)]
|
||||
// instant.elapsed().as_millis_f32()
|
||||
#![feature(duration_millis_float)]
|
||||
// Allow attributes on statements and code blocks
|
||||
#![feature(stmt_expr_attributes)]
|
||||
// if let Some(is_foo) = is_foo && is_foo { ... }
|
||||
#![feature(let_chains)]
|
||||
|
||||
// Use these to incrementally fix warnings with cargo fix
|
||||
//#![allow(warnings, unused)]
|
||||
|
||||
@@ -646,7 +646,9 @@ impl ChatView {
|
||||
}
|
||||
|
||||
// We are in selection mode so don't scroll the screen until touch phase ends.
|
||||
if let Some(is_select_mode) = is_select_mode {
|
||||
if let Some(is_select_mode) = is_select_mode &&
|
||||
is_select_mode
|
||||
{
|
||||
self.select_line(touch_y).await;
|
||||
return
|
||||
}
|
||||
@@ -936,7 +938,7 @@ impl ChatView {
|
||||
// Use this to start from the top
|
||||
//let start_pos = if total_height < rect.h { total_height } else { rect.h };
|
||||
// We start from the bottom though
|
||||
let start_pos = rect.y + rect.h;
|
||||
let start_pos = rect.h;
|
||||
|
||||
let mut instrs = vec![];
|
||||
//let mut old_drawmesh = vec![];
|
||||
|
||||
Reference in New Issue
Block a user