mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-02 23:28:39 +08:00
allow smooth swipe-to-scroll on mobile
This commit is contained in:
parent
4e964d82ad
commit
276c9aab96
@ -81,7 +81,6 @@ function UITaskbarItem(options){
|
||||
// if this is for the launcher popover, and it's mobile, and has-open-popover, close the popover
|
||||
if( $(el_taskbar_item).attr('data-name') === 'Start'
|
||||
&& (isMobile.phone || isMobile.tablet) && $(el_taskbar_item).hasClass('has-open-popover')){
|
||||
console.log('closing popover');
|
||||
$('.popover').remove();
|
||||
return;
|
||||
}
|
||||
|
@ -4642,4 +4642,20 @@ fieldset[name=number-code] {
|
||||
|
||||
.device-phone .start-app-title{
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.device-phone .desktop{
|
||||
/* Enable smooth scrolling on iOS */
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
||||
/* Allow vertical touch scrolling while preventing horizontal */
|
||||
touch-action: pan-x;
|
||||
|
||||
/* Hide scrollbars while keeping functionality */
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
}
|
||||
|
||||
.device-phone .desktop * {
|
||||
touch-action: pan-x;
|
||||
}
|
@ -563,7 +563,6 @@ window.sendWindowWillCloseMsg = function(iframe_element) {
|
||||
}
|
||||
|
||||
window.logout = ()=>{
|
||||
console.log('DISP LOGOUT EVENT');
|
||||
$(document).trigger('logout');
|
||||
// document.dispatchEvent(new Event("logout", { bubbles: true}));
|
||||
}
|
||||
@ -1624,7 +1623,7 @@ window.move_items = async function(el_items, dest_path, is_undo = false){
|
||||
|
||||
// log stats to console
|
||||
let move_duration = (Date.now() - move_init_ts);
|
||||
console.log(`moved ${el_items.length} item${el_items.length > 1 ? 's':''} in ${move_duration}ms`);
|
||||
// console.log(`moved ${el_items.length} item${el_items.length > 1 ? 's':''} in ${move_duration}ms`);
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// DONE! close progress window with delay to allow user to see 100% progress
|
||||
|
@ -21,7 +21,6 @@ import i18n from "../i18n/i18n.js";
|
||||
|
||||
export class LocaleService extends Service {
|
||||
format_duration (seconds) {
|
||||
console.log('seconds?', typeof seconds, seconds);
|
||||
const hours = Math.floor(seconds / 3600);
|
||||
const minutes = Math.floor((seconds % 3600) / 60);
|
||||
const remainingSeconds = seconds % 60;
|
||||
|
Loading…
Reference in New Issue
Block a user