Comments (6)
@klochko7 Try to get the code from this repository. Do you face the same problem?
from ngx-pinch-zoom.
@klochko7 Facing the same issue under angular 8 and the latest version available in npm.
from ngx-pinch-zoom.
@jarnstadt Are you using any conditional statement on the img tag?
from ngx-pinch-zoom.
@kaustubhnj yes I do.
from ngx-pinch-zoom.
@jarnstadt
I was facing similar issue.
The condition needs to be checked at the level of tag.
<pinch-zoom *ngIf="condition">
Worked for me.
from ngx-pinch-zoom.
I have no condition and this problem is still arising. Instead of img, I have div tag inside pinch-zoom with hidden attribute and ngfor directive. I tried to move them to pinch zoom and it disappeared.
I'm trying to zoom text blocks on canvas with pinch gesture. I already have one mousedown event for drawing purpose. So whenever I'm trying to pinch, a sketch is drawn.
Here's my code for pinch-zoom -
<pinch-zoom>
<!-- textblocks -->
<div [hidden]="textModalOpened" *ngFor="let textBlock of TEXT_BLOCKS">
<div id="t1" class="text text1 ion-text-center" (touchstart)="textTouched($event)" (mousedown)="textTouched($event)"
(touchmove)="textMoved($event, textBlock)" (mousemove)="textMoved($event, textBlock)"
(touchend)="textUntouched($event, textBlock)" (mouseup)="textUntouched($event, textBlock)" style="
top: {{ textBlock.position.y }}px;
left: {{ textBlock.position.x }}px;
font-family: {{ textBlock.fontFamily }};
font-size: {{ textBlock.overDelete ? 10 : textBlock.fontSize }}px;
color: {{ textBlock.color }};
width: {{ textBlock.overDelete ? 70 : textBlock.width }}px;
height: {{ textBlock.overDelete ? 70 : textBlock.height }}px;
">
{{ textBlock.text }}
</div>
</div>
</pinch-zoom>
from ngx-pinch-zoom.
Related Issues (20)
- dynamically changing image size and/or window resizing does not adjust zoom level restriction on ivy-pinch-pro-1.4.0 HOT 1
- ngOnDestroy() needs the disabled property check HOT 1
- Trying to purchase pro but the Gumroad link is not working HOT 1
- Angular 14 compatibility HOT 7
- Alternatives to ngx-pinch-zoom? HOT 4
- Angular 15 ? HOT 1
- Iam using angular 16, Then Not install my project,Why HOT 3
- Fullscreen image HOT 1
- Possible disable the drag?
- Zooming in big screens (iPad Pro Retina or similars) HOT 1
- Listener property usage HOT 2
- Event zoom-in and zoom out not working HOT 3
- Angular 11 compatibility HOT 5
- Draggable feature with natural (parent div direction)or image direction HOT 1
- when zooming in to pdf the picture quality is poor
- Angular 12 HOT 14
- Pinching doesn't work with svgs HOT 1
- `npm run build` fails
- the professional version about setZoom method HOT 1
- [limitZoom]="number" not working ivy-pinch-pro-1.4.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-pinch-zoom.