how can I ignore left or right slide movement in a UIViewController.
I am using ViewDeck and the center vc is a tabbarviewcontroller, there are two view controllers in that tabbarviewcontroller. In first vc of the tabbarvc, users can slide right to show the left vc but in the second vc, users can't do the same thing. so I want to ignore the slide movement in the second vc.
Thank you in advance.
I found the solution.
Using delegation and
_deckController.panningMode = IIViewDeckNoPanning;
This works good!
Related
I don't know how to properly explain this.
I have a svg element which is a big rectangle. If i scroll down, then click on my element, the click isn't registered where my mouse is, but where my mouse would be if i didn't scroll down.
So, if i scroll down by 100px and click on my rectangle, the click will be registered 100px above where i actually clicked.
It's behaving as if i hadn't scrolled down.
Edit: I'm using event.clientX and event.clientY to get the mouse position.
I'm new to svg and i don't know the right keywords to describe my problem.
I'm using svg.js, though i don't think it's relevant to the problem.
I assume this is a well known thing. Can someone point me in the right direction? What kind of keyword am i looking for here?
The problem seems simple enough, i just need to know what to search for.
Thank you.
The problem was the utilization of (event.clientX, event.clientY) to get the mouse position.
In the presence of a vertical and/or horizontal scroll, using these properties caused a mismatch between where the mouse appeared within the page and the mouse position provided by (event.clientX, event.clientY).
I was using the mousedown event, with the mousemove event to create a selection rectangle, similar to what you can find in video games. When horizontal or vertical scrolling had been applied, my selection rectangle didn't appear where my mouse was.
This was solved by using event.pageX and event.pageY (instead of clientX and clientY).
Thank you to #ccprog for pointing me in the right direction.
I am trying to add an aggregation relation from 'Property' -> 'ConsumerPropertySelected' object, but it wont add any type of relation. (See the image)
If I invert the direction ('ConsumerPropertySelection' -> Property) then it adds a relation but the aggregation diamond is pointing in the wrong direction
(Currenlty I pick the relation from the toolbar and drag it between 2 objects, which worked for all the other relations... Not sure if there is a different way to do it or some setting I am missing)
This looks like a bug, however there is a workaround.
Select the relation you want from the toolbar.
Left Click and hold on the first object(ex: 'Property')
Whilst still holding the left mouse button, drag the cursor to the second object (ex: 'ConsumerPropertySelected')
Release your left mouse button over the second object
and finally click the second object again with your left mouse button
If it doesn't work the first time, try it again and it should create it... Hopefully this bug will get fixed soon
EDIT:
Looks like the bug is fixed: https://cgit.kde.org/umbrello.git/commit/?id=42d5073216f6801fef68dd6a4508b9a0e1f67ef1
The fix will probably be deployed with the next release
It is a great library. It works well. Thank you Bumbu Alex and Anders Riutta and all the contributors. Well I got stuck. I have tried a lot. I guess the answer is nearby.
When I zoomIn by wheel or pinch (no matter) it zooms well in and out. When I reach zoom back by 1 it stays in place.
But when I
ZoomIn 2 times (for example)
Move my mouse cursor away (1 inch for
example)
ZoomOut all the way and my elements are all off. So nothing
centered anymore. It is applied a pan. Half elements are got cut off
of the viewport.
So it is not a bad. I guess I use it wrong. I have tried thousand times to resize it back but nothing works for me. I appreciate any help. Thank you.
It is normal behaviour as zooming with a mouse zooms based on current mouse position. Same goes about zooming out.
If you want to achieve zooming in and out that is always the same then you'd have to:
disable default mouse handing
add your own listener for mouse scroll events
when mouse scroll is fired - zoom in our out
(This demo) has some similar changes.
If you just want to centre the contents then you can use .center() or .contain() methods (you may also need to call .fit()).
This is a new one for me. In Design view I am unable to see the first 150 pixels of the design view window-- including the buttons/options to the left of the AppTheme button. I've tried the Pan and Zoom tool, which seems to do nothing. It shows the full view and blueprint view filling the Pan and Zoom tool interface. Any idea how to fix this:
"Window" -> "Restore Default Layout" worked for me.
I had the same problem.
Just drag the mouse where your projects are to the far left of the screen and slowly move with your mouse over to the right until you will see somewhere in the middle resize pointer- thats your design view border. Click it and move to the right and it should appear!
If you want i can try to make a gif how to do it if the above does not help.
Is there a way to separate the design window in Dreamweaver and put in on my second screen.
So then i can have the code view on my main screen and design view on the second screen.
Thanks in advance
Just expand the window into both screens. To do this you need to restore the window down, grab the corner of the window, and expand to the second screen. That's what I do with it so that my Code View is on my left monitor and Live View is on my right.