mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
@ -218,7 +218,6 @@ export class VirtualScroll implements ComponentInterface {
|
||||
this.approxItemHeight,
|
||||
cellIndex, offset, len
|
||||
);
|
||||
console.debug('[virtual] cells recalculated', cells.length);
|
||||
this.cells = inplaceUpdate(this.cells, cells, cellIndex);
|
||||
this.lastItemLen = this.items.length;
|
||||
this.indexDirty = Math.max(offset - 1, 0);
|
||||
@ -331,7 +330,6 @@ export class VirtualScroll implements ComponentInterface {
|
||||
return;
|
||||
}
|
||||
if (cell.height !== height || cell.visible !== true) {
|
||||
console.debug(`[virtual] cell height or visibility changed ${cell.height}px -> ${height}px`);
|
||||
cell.visible = true;
|
||||
cell.height = height;
|
||||
this.indexDirty = Math.min(this.indexDirty, index);
|
||||
@ -372,7 +370,6 @@ export class VirtualScroll implements ComponentInterface {
|
||||
this.approxItemHeight,
|
||||
0, 0, this.lastItemLen
|
||||
);
|
||||
console.debug('[virtual] cells recalculated', this.cells.length);
|
||||
this.indexDirty = 0;
|
||||
}
|
||||
|
||||
@ -388,7 +385,6 @@ export class VirtualScroll implements ComponentInterface {
|
||||
this.heightIndex = resizeBuffer(this.heightIndex, this.cells.length);
|
||||
this.totalHeight = calcHeightIndex(this.heightIndex, this.cells, index);
|
||||
|
||||
console.debug('[virtual] height index recalculated', this.heightIndex.length - index);
|
||||
this.indexDirty = Infinity;
|
||||
}
|
||||
|
||||
|
@ -528,7 +528,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
function onTransitionFallback() {
|
||||
console.debug('Animation onTransitionFallback, CSS onTransitionEnd did not fire!');
|
||||
// oh noz! the transition end event didn't fire in time!
|
||||
// instead the fallback timer when first
|
||||
// if all goes well this fallback should never fire
|
||||
|
@ -37,7 +37,6 @@ export function createPointerEvents(
|
||||
|
||||
function handleMouseDown(ev: any) {
|
||||
if (lastTouchEvent > Date.now()) {
|
||||
console.debug('mousedown event dropped because of previous touch');
|
||||
return;
|
||||
}
|
||||
if (!pointerDown(ev)) {
|
||||
|
@ -9,7 +9,7 @@ export function relocateInput(
|
||||
if (cloneMap.has(componentEl) === shouldRelocate) {
|
||||
return;
|
||||
}
|
||||
console.debug(`native-input, hideCaret, shouldHideCaret: ${shouldRelocate}, input value: ${inputEl.value}`);
|
||||
|
||||
if (shouldRelocate) {
|
||||
addClone(componentEl, inputEl, inputRelativeY);
|
||||
} else {
|
||||
|
@ -4,7 +4,6 @@ export function enableHideCaretOnScroll(componentEl: HTMLElement, inputEl: HTMLI
|
||||
if (!scrollEl || !inputEl) {
|
||||
return () => { return; };
|
||||
}
|
||||
console.debug('Input: enableHideCaretOnScroll');
|
||||
|
||||
const scrollHideCaret = (shouldHideCaret: boolean) => {
|
||||
if (isFocused(inputEl)) {
|
||||
|
@ -2,8 +2,6 @@
|
||||
const SKIP_SELECTOR = 'input, textarea, [no-blur]';
|
||||
|
||||
export function enableInputBlurring(doc: Document) {
|
||||
console.debug('Input: enableInputBlurring');
|
||||
|
||||
let focused = true;
|
||||
let didScroll = false;
|
||||
|
||||
|
@ -12,12 +12,10 @@ export function enableScrollAssist(
|
||||
let coord: any;
|
||||
const touchStart = (ev: Event) => {
|
||||
coord = pointerCoord(ev);
|
||||
console.debug(`input-base, pointerStart, type: ${ev.type}`);
|
||||
};
|
||||
|
||||
const touchEnd = (ev: Event) => {
|
||||
// input cover touchend/mouseup
|
||||
console.debug(`input-base, pointerEnd, type: ${ev.type}`);
|
||||
if (!coord) {
|
||||
return;
|
||||
}
|
||||
|
@ -1,8 +1,6 @@
|
||||
const PADDING_TIMER_KEY = '$ionPaddingTimer';
|
||||
|
||||
export function enableScrollPadding(doc: Document, keyboardHeight: number) {
|
||||
console.debug('Input: enableScrollPadding');
|
||||
|
||||
function onFocusin(ev: any) {
|
||||
setScrollPadding(ev.target, keyboardHeight);
|
||||
}
|
||||
|
Reference in New Issue
Block a user